aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-13 22:30:29 +0300
committermax99x <max99x@gmail.com>2011-07-13 22:30:29 +0300
commit9ee300c1906aae24e1a27521c7a0ef5e461efded (patch)
tree3f3ad341ea9fae89c7581c0402a094208e9367de /tests/runner.py
parentfcacb4c13c73f2febfa7dabe2ffc70c727ea7762 (diff)
Switched from argparse to optparse in emscripten.py, for older Python.
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index e21a74a5..ede51756 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -179,8 +179,8 @@ class RunnerCore(unittest.TestCase):
exported_settings[setting] = value
except:
pass
- settings = ['%s=%s' % (k, json.dumps(v)) for k, v in exported_settings.items()]
- compiler_output = timeout_run(Popen([EMSCRIPTEN, filename + ('.o.ll' if append_ext else ''), '-o', filename + '.o.js', '-s'] + settings + extra_args, stdout=PIPE, stderr=STDOUT), TIMEOUT, 'Compiling')
+ settings = ['-s %s=%s' % (k, json.dumps(v)) for k, v in exported_settings.items()]
+ compiler_output = timeout_run(Popen([EMSCRIPTEN, filename + ('.o.ll' if append_ext else ''), '-o', filename + '.o.js'] + settings + extra_args, stdout=PIPE, stderr=STDOUT), TIMEOUT, 'Compiling')
# Detect compilation crashes and errors
if compiler_output is not None and 'Traceback' in compiler_output and 'in test_' in compiler_output: print compiler_output; assert 0