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:
parent
afbaab20c7
commit
8a550fa3e8
@ -1861,6 +1861,9 @@ class TestDbusService(unittest.TestCase):
|
||||
pv = self.objs[PV_INT][0]
|
||||
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"):
|
||||
raise unittest.SkipTest('test not running in /dev')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user