]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Use non-zero exit status if any tests failed
authorJosh Durgin <josh.durgin@dreamhost.com>
Mon, 5 Mar 2012 18:28:35 +0000 (10:28 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Mon, 5 Mar 2012 21:34:33 +0000 (13:34 -0800)
Fixes: #1989
teuthology/run.py

index ca31c79606586c54b4a9c4799a31eae6ac50df6e..40f04f726d2e74f423c9ac8af0a49f3bc09bae48 100644 (file)
@@ -166,6 +166,10 @@ def main():
             with file(os.path.join(ctx.archive, 'summary.yaml'), 'w') as f:
                 yaml.safe_dump(ctx.summary, f, default_flow_style=False)
 
+    if not ctx.summary.get('success', True):
+        import sys
+        sys.exit(1)
+
 def nuke(targets, owner, log, teuth_config, should_unlock,
          synch_clocks=True, reboot_all=True):
     from teuthology.nuke import nuke