aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-22 09:31:22 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-22 09:31:22 -0700
commitb80d879b78243e1dddb5abffad60294e6b47d1bc (patch)
treed47d3b28018cc7d1dcf9261f47f0361d13ce3745
parentfe8c5821fce322bee6d334aa191baf3f3187d527 (diff)
fix argument hardcoding
-rwxr-xr-xtests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 99f24fc9..811d32a5 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -138,7 +138,7 @@ class RunnerCore(unittest.TestCase):
# Hardcode in the arguments, so js is portable without manual commandlinearguments
if not args: return
js = open(filename).read()
- open(filename, 'w').write(js.replace('var ret = run();', 'var ret = run(%s);' % str(args)))
+ open(filename, 'w').write(js.replace('run();', 'run(%s);' % str(args)))
def prep_ll_run(self, filename, ll_file, force_recompile=False, build_ll_hook=None):
if ll_file.endswith(('.bc', '.o')):