diff options
author | Tony Asleson <tasleson@redhat.com> | 2017-03-01 17:24:08 -0600 |
---|---|---|
committer | Tony Asleson <tasleson@redhat.com> | 2017-03-01 17:47:04 -0600 |
commit | 83249f332709037256bf0f3c7c3d3663addaffc6 (patch) | |
tree | 76eb01040c3eb4bba4f867066a8e628f777aa5b1 | |
parent | 4c89d3794c64b674191bb9c767415cc2ba919e3a (diff) | |
download | lvm2-83249f332709037256bf0f3c7c3d3663addaffc6.tar.gz |
lvmdbustest.py: Validate PV device
Validate device lookup after PV creation.
-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 0e27ae3b6..800f590ed 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 |