summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2016-10-07 18:18:36 -0500
committerTony Asleson <tasleson@redhat.com>2016-10-10 16:31:00 -0500
commitbe06fa695ea9833bcc25c09a17c6396cca07be31 (patch)
treecc3b40001f245cd6f1e43d43b38e1243a0a05917
parent3e45285b403bdcbf744f21eba6d6aa3a70628e71 (diff)
downloadlvm2-be06fa695ea9833bcc25c09a17c6396cca07be31.tar.gz
lvmdbustest.py: Skip test_job_handling_timer on loopback
This test never passes on loop back, so we will skip unless the pv devices are real devices which contain `/dev/sd`. We always fail because we need lvm to run slow to get a timer to pop, and loopback are too fast.
-rwxr-xr-xtest/dbus/lvmdbustest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index 37ce1d465..d2222641d 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -807,6 +807,11 @@ class TestDbusService(unittest.TestCase):
yes = False
+ for pp in self.objs[PV_INT]:
+ if '/dev/sd' not in pp.Pv.Name:
+ std_err_print("Skipping test_job_handling_timer on loopback")
+ return
+
# This may not pass
for i in [48, 64, 128]:
yes = self._test_expired_timer(i)