Anonymous committed fa0aca5

Fix capturing timings from a single configuration script.
We were closing the output log file, thinking it was a per-script file,
even though we still write to the original log file for the revision.

Comments (0)

Files changed (1)


                 lf = os.path.join(opts.origin, opts.logsdir, subdir, log_name)
                 out = open(lf, 'w')
                 err = None
+                close_out = True
                 out = stdout
                 err = stderr
+                close_out = False
             s =, stdout=out, stderr=err)
             if s and status == 0:
                 status = s
-            if out not in (sys.stdout, None):
+            if close_out:
                 out = None