diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-28 00:18:38 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-28 00:21:38 +0100 |
commit | 8a550fa3e8747fe01517c1c4c1d81e9406d000ea (patch) | |
tree | 357d487bdf332b92f4638c885e0d6ca418076403 | |
parent | afbaab20c72515231740a1a6827d0110c6ff59cf (diff) | |
download | lvm2-8a550fa3e8747fe01517c1c4c1d81e9406d000ea.tar.gz |
tests: test_pv_symlinks works only with /dev dir
Skip test with LVM_TEST_DEVDIR != /dev
-rwxr-xr-x | test/dbus/lvmdbustest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py index 03d5ba5aa..6d692223f 100755 --- a/test/dbus/lvmdbustest.py +++ b/test/dbus/lvmdbustest.py @@ -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') |