1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: test_pv_symlinks works only with /dev dir

Skip test with LVM_TEST_DEVDIR != /dev
This commit is contained in:
Zdenek Kabelac 2021-03-28 00:18:38 +01:00
parent afbaab20c7
commit 8a550fa3e8

View File

@ -1861,6 +1861,9 @@ class TestDbusService(unittest.TestCase):
pv = self.objs[PV_INT][0] pv = self.objs[PV_INT][0]
pv_device_path = pv.Pv.Name pv_device_path = pv.Pv.Name
if dm_dev_dir != '/dev':
raise unittest.SkipTest('test not running in real /dev')
if not pv_device_path.startswith("/dev"): if not pv_device_path.startswith("/dev"):
raise unittest.SkipTest('test not running in /dev') raise unittest.SkipTest('test not running in /dev')