]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Save summary after nuking machines.
authorJosh Durgin <josh.durgin@dreamhost.com>
Fri, 18 Nov 2011 21:53:51 +0000 (13:53 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 18 Nov 2011 21:53:51 +0000 (13:53 -0800)
This way you can tell when tests are entirely finished running.

teuthology/run.py

index e31f7e53d7a0cb5ef3dfa5906f1c9422b338f65b..9082d0594a6d24900718174d219048d46b4dd3e0 100644 (file)
@@ -145,10 +145,6 @@ def main():
     try:
         run_tasks(tasks=ctx.config['tasks'], ctx=ctx)
     finally:
-        if ctx.archive is not None:
-            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') and ctx.config.get('nuke-on-error'):
             from teuthology.parallel import parallel
             with parallel() as p:
@@ -160,6 +156,9 @@ def main():
                         log=log,
                         teuth_config=ctx.teuthology_config,
                         )
+        if ctx.archive is not None:
+            with file(os.path.join(ctx.archive, 'summary.yaml'), 'w') as f:
+                yaml.safe_dump(ctx.summary, f, default_flow_style=False)
 
 def nuke_and_unlock(targets, owner, log, teuth_config,
                     synch_clocks=True, reboot_all=True):