[lvm-devel] master - lvmdbustest.py: Validate PV device

Tony Asleson tasleson at sourceware.org
Wed Mar 1 23:58:51 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=83249f332709037256bf0f3c7c3d3663addaffc6
Commit:        83249f332709037256bf0f3c7c3d3663addaffc6
Parent:        4c89d3794c64b674191bb9c767415cc2ba919e3a
Author:        Tony Asleson <tasleson at redhat.com>
AuthorDate:    Wed Mar 1 17:24:08 2017 -0600
Committer:     Tony Asleson <tasleson at redhat.com>
CommitterDate: Wed Mar 1 17:47:04 2017 -0600

lvmdbustest.py: Validate PV device

Validate device lookup after PV creation.
---
 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 0e27ae3..800f590 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -198,6 +198,9 @@ class TestDbusService(unittest.TestCase):
 			self.objs[MANAGER_INT][0].Manager.PvCreate(
 				dbus.String(device), dbus.Int32(g_tmo), EOD)
 		)
+
+		self._validate_lookup(device, pv_path)
+
 		self.assertTrue(pv_path is not None and len(pv_path) > 0)
 		return pv_path
 




More information about the lvm-devel mailing list