aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-31 04:48:43 +0300
committermax99x <max99x@gmail.com>2011-07-31 04:48:43 +0300
commit7f735afe5ee57f693602b661e8e6286dcc914c72 (patch)
treeb2600adf0702544c40453febbf8fd5e09e048102 /tools/shared.py
parent4477fc67dea3cf0e6d54f4ae59946a70b069e7ae (diff)
parent3928f293b817a48797faf10b10a69240236de767 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py4
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