]> sourceware.org Git - lvm2.git/commitdiff
lvmdbustest.py: Denote failure if set_execution fails
authorTony Asleson <tasleson@redhat.com>
Fri, 7 Oct 2016 20:30:18 +0000 (15:30 -0500)
committerTony Asleson <tasleson@redhat.com>
Mon, 10 Oct 2016 21:31:00 +0000 (16:31 -0500)
test/dbus/lvmdbustest.py

index ef2c07a22998298644a5e91dead1bef6a126f2a0..37ce1d46577934f5979001d1e062ec2bfd2002c4 100755 (executable)
@@ -1298,6 +1298,7 @@ class TestDbusService(unittest.TestCase):
                self.assertTrue(tag in vg_proxy.Vg.Tags, "%s not in %s" %
                                                (tag, str(vg_proxy.Vg.Tags)))
 
+
 class AggregateResults(object):
 
        def __init__(self):
@@ -1307,6 +1308,9 @@ class AggregateResults(object):
                if not result.result.wasSuccessful():
                        self.no_errors = False
 
+       def register_fail(self):
+               self.no_errors = False
+
        def exit_run(self):
                if self.no_errors:
                        sys.exit(0)
@@ -1339,6 +1343,7 @@ if __name__ == '__main__':
                        g_tmo = 15
                        r.register_result(unittest.main(exit=False))
                else:
+                       r.register_fail()
                        std_err_print("ERROR: Unable to dynamically configure "
                                "service to use lvm shell!")
 
This page took 0.04356 seconds and 5 git commands to generate.