summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarian Csontos <mcsontos@redhat.com>2017-05-26 08:33:39 +0200
committerMarian Csontos <mcsontos@redhat.com>2017-05-26 08:33:39 +0200
commit7687ab82c8d71e5d11c915a4dd390249b8124b9a (patch)
tree38da5cd0fff2a715397fe85458360d67a204ce52
parent3745b52ed4ff28e553e1372e425491d11cc78031 (diff)
downloadlvm2-7687ab82c8d71e5d11c915a4dd390249b8124b9a.tar.gz
test: Use _pv suffix for nested devices
Testsuite uses global_filter to accept only test devices with suffix matching /_pv[0-9_]*$/ set by generate_config in aux.sh.
-rwxr-xr-xtest/dbus/lvmdbustest.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index e3eeb6ef8..d9f0f8c44 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -716,9 +716,9 @@ class TestDbusService(unittest.TestCase):
LV_BASE_INT)
self._validate_lookup("%s/%s" % (vg.Name, lv_name), lv.object_path)
- def _create_lv(self, thinpool=False, size=None, vg=None):
+ def _create_lv(self, thinpool=False, size=None, vg=None, suffix=None):
- lv_name = lv_n()
+ lv_name = lv_n(suffix=suffix)
interfaces = list(LV_BASE_INT)
if thinpool:
@@ -1842,7 +1842,8 @@ class TestDbusService(unittest.TestCase):
self.assertIn(pv_object_path, vg.Vg.Pvs,
"Expecting PV object path in Vg.Pvs")
- lv = self._create_lv(vg=vg.Vg, size=vg.Vg.FreeBytes)
+ lv = self._create_lv(vg=vg.Vg, size=vg.Vg.FreeBytes,
+ suffix="_pv")
device_path = '/dev/%s/%s' % (vg.Vg.Name, lv.LvCommon.Name)
new_pv_object_path = self._pv_create(device_path)