diff options
Diffstat (limited to 'bin/time-scons.py')
-rw-r--r-- | bin/time-scons.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/time-scons.py b/bin/time-scons.py index c0095e8..b7d8ef1 100644 --- a/bin/time-scons.py +++ b/bin/time-scons.py @@ -260,13 +260,15 @@ def do_revisions(cr, opts, branch, revisions, scripts): lf = os.path.join(opts.origin, opts.logsdir, subdir, log_name) out = open(lf, 'w') err = None + close_out = True else: out = stdout err = stderr + close_out = False s = cr.run(script_command(script), stdout=out, stderr=err) if s and status == 0: status = s - if out not in (sys.stdout, None): + if close_out: out.close() out = None |