]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run: print pass/FAIL as final line
authorSage Weil <sage@inktank.com>
Wed, 20 Feb 2013 23:27:02 +0000 (15:27 -0800)
committerSage Weil <sage@inktank.com>
Wed, 20 Feb 2013 23:27:23 +0000 (15:27 -0800)
Makes it easy to tell at a glance if your last test passed or not.

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/run.py

index d9f3ea278f541791099c2bdeb17011d3e1cd588a..ef9947f4992684ab0ef68e77590a2a97b0869a68 100644 (file)
@@ -184,10 +184,14 @@ 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):
+    if ctx.summary.get('success', True):
+        log.info('pass')
+    else:
+        log.info('FAIL')
         import sys
         sys.exit(1)
 
+
 def schedule():
     parser = argparse.ArgumentParser(description='Schedule ceph integration tests')
     parser.add_argument(