1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

lvmdbustest.py: Add blurb about scan_lvs = 1

When developing and testing on a local system, to get the unit
test to pass the test_nesting test, editing the test conf will achieve
the success too.
This commit is contained in:
Tony Asleson 2019-10-03 11:57:10 -05:00
parent b0286fa127
commit b7c64fe8e2

View File

@ -1871,6 +1871,10 @@ class TestDbusService(unittest.TestCase):
# #
# NOTE: This needs an equivalent of aux extend_filter_LVMTEST # NOTE: This needs an equivalent of aux extend_filter_LVMTEST
# when run from lvm2 testsuite. See dbustest.sh. # when run from lvm2 testsuite. See dbustest.sh.
# Also if developing locally with actual devices one can achieve this
# by editing lvm.conf with "devices/scan_lvs = 1" As testing
# typically utilizes loopback, this test is skipped in
# those environments.
pv_object_path = self.objs[PV_INT][0].object_path pv_object_path = self.objs[PV_INT][0].object_path
if not self.objs[PV_INT][0].Pv.Name.startswith("/dev"): if not self.objs[PV_INT][0].Pv.Name.startswith("/dev"):