[lvm-devel] master - tests: disable symlink test

Zdenek Kabelac zkabelac at sourceware.org
Mon May 21 10:01:05 UTC 2018


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6029d6d8d8198aee17ec8972c333477f2c581bff
Commit:        6029d6d8d8198aee17ec8972c333477f2c581bff
Parent:        25a66737e3c9fee218c84a659d5d9b7a34347e47
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Sat May 19 12:08:23 2018 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
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(-)

diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index 5f34847..d633aa3 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -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




More information about the lvm-devel mailing list