diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-07-30 10:26:30 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-07-30 10:26:30 -0700 |
commit | f6e02c614a905658fe164e19548d4436854253bd (patch) | |
tree | bf054e29b2455430d03108b00180ca607eb9dea4 /tools/shared.py | |
parent | 778b071526306906ecf3c09aa307ededa1c4eddf (diff) |
workarounds for js engine bugs
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py index dcf6eb31..811f56f5 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -43,9 +43,9 @@ def timeout_run(proc, timeout, note): raise Exception("Timed out: " + note) return proc.communicate()[0] -def run_js(engine, filename, args, check_timeout=False, stdout=PIPE, stderr=STDOUT): +def run_js(engine, filename, args, check_timeout=False, stdout=PIPE, stderr=STDOUT, cwd=None): return timeout_run(Popen(engine + [filename] + (['--'] if 'v8' in engine[0] else []) + args, - stdout=stdout, stderr=stderr), 15*60 if check_timeout else None, 'Execution') + stdout=stdout, stderr=stderr, cwd=cwd), 15*60 if check_timeout else None, 'Execution') def to_cc(cxx): # By default, LLVM_GCC and CLANG are really the C++ versions. This gets an explicit C version |