diff options
Diffstat (limited to 'devbot')
-rw-r--r-- | devbot/run.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/devbot/run.py b/devbot/run.py index 8d47adb..038775b 100644 --- a/devbot/run.py +++ b/devbot/run.py @@ -5,6 +5,7 @@ import string import random import shutil import subprocess +import sys import time import tempfile @@ -25,6 +26,12 @@ def run(command): if output: args.extend(["--output", output]) + stdout = open(config.log_path, 'a') + stderr = stdout + + os.dup2(stdout.fileno(), sys.stdout.fileno()) + os.dup2(stderr.fileno(), sys.stderr.fileno()) + os.execlp(args[0], *args) @@ -63,7 +70,7 @@ def run_test(command, test_path, virtual=False): return result -def collect_logs(source_path, log_name): +def collect_logs(source_path): logs = {} for filename in os.listdir(source_path): if filename.endswith(".log"): |