Skip to contentSkip to conversation

master - lvmdbustest.py: Add blurb about scan_lvs = 1

PATCH Tony Asleson 1 participant 1 message Oct 30, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b7c64fe8e29ffc003364da93047b9e003c35fc96
Commit:        b7c64fe8e29ffc003364da93047b9e003c35fc96
Parent:        b0286fa1277a9fc7a293916a3c8a3e460d276aa2
Author:        Tony Asleson <[email protected]>
AuthorDate:    Thu Oct 3 11:57:10 2019 -0500
Committer:     Tony Asleson <[email protected]>
CommitterDate: Wed Oct 30 10:38:40 2019 -0500

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.

---
 test/dbus/lvmdbustest.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
test/dbus/lvmdbustest.py +4 -0
index 9bc1683..4ae8b25 100755
@@ -1871,6 +1871,10 @@ class TestDbusService(unittest.TestCase):
 		#
 		# NOTE: This needs an equivalent of aux extend_filter_LVMTEST
 		# 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
 
 		if not self.objs[PV_INT][0].Pv.Name.startswith("/dev"):