From 14936747356cc01d1f654cac5f98aca4316dd06e Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 5 Mar 2012 10:28:35 -0800 Subject: [PATCH] Use non-zero exit status if any tests failed Fixes: #1989 --- teuthology/run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teuthology/run.py b/teuthology/run.py index ca31c79606586..40f04f726d2e7 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -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 -- 2.39.5