Skip to contentSkip to conversation

master - tests: disable symlink test

PATCH Zdenek Kabelac 1 participant 1 message May 21, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6029d6d8d8198aee17ec8972c333477f2c581bff
Commit:        6029d6d8d8198aee17ec8972c333477f2c581bff
Parent:        25a66737e3c9fee218c84a659d5d9b7a34347e47
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sat May 19 12:08:23 2018 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon May 21 11:59:39 2018 +0200

tests: disable symlink test

It's quite unclear what the test is meant to do - disable it just like within python test.

---
 test/dbus/lvmdbustest.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
test/dbus/lvmdbustest.py +5 -1
index 5f34847..d633aa3 100755
@@ -1873,10 +1873,14 @@ class TestDbusService(unittest.TestCase):
 		# when run from lvm2 testsuite. See dbustest.sh.
 		pv_object_path = self.objs[PV_INT][0].object_path
 
+		if not pv_object_path.startswith("/dev"):
+			std_err_print('Skipping test not running in /dev')
+			return
+
 		for i in range(0, 5):
 			pv_object_path = self._create_nested(pv_object_path)
 
-	def test_pv_symlinks(self):
+	def DISABLED_test_pv_symlinks(self):
 		# Lets take one of our test PVs, pvremove it, find a symlink to it
 		# and re-create using the symlink to ensure we return an object
 		# path to it.  Additionally, we will take the symlink and do a lookup