summaryrefslogtreecommitdiff
path: root/test/dbus
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2022-09-08 15:29:55 -0500
committerTony Asleson <tasleson@redhat.com>2022-09-16 10:49:37 -0500
commita326e35cda10b922dfa29d27e9c03e3b56282ba5 (patch)
tree7668175651aee2f1e09697512127300226f15d3c /test/dbus
parentead80d134dd6afb288453bd20c5ab25daa450b06 (diff)
downloadlvm2-a326e35cda10b922dfa29d27e9c03e3b56282ba5.tar.gz
lvmdbustest: Check for self.pvs
If we don't make it through setUp, self.pvs will not exist.
Diffstat (limited to 'test/dbus')
-rwxr-xr-xtest/dbus/lvmdbustest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index 18cac35d6..045dbb2b0 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -454,7 +454,7 @@ class TestDbusService(unittest.TestCase):
# Check to make sure the PVs we had to start exist, else re-create
# them
self.objs, self.bus = get_objects()
- if len(self.pvs) != len(self.objs[PV_INT]):
+ if hasattr(self, "pvs") and len(self.pvs) != len(self.objs[PV_INT]):
for p in self.pvs:
found = False
for pc in self.objs[PV_INT]: