diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-11 18:31:10 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-11 18:31:10 -0800 |
commit | b1ee96ba0dd86ca8e1f8a14bfd0c48bdd67e58b6 (patch) | |
tree | 6853c275f90688feb5876542ca85ff146c08583e /tools | |
parent | d13c1e87d550cb11b3502c10022039a41ac6ab10 (diff) |
refactor run_js and an additional emcc test
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py index b517c9c7..a63bef9b 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -124,7 +124,7 @@ 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=None, cwd=None): +def run_js(filename, engine=None, args=[], check_timeout=False, stdout=PIPE, stderr=None, cwd=None): if engine is None: engine = JS_ENGINES[0] if type(engine) is not list: engine = [engine] return timeout_run(Popen(engine + [filename] + (['--'] if 'd8' in engine[0] else []) + args, |