aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-23 21:13:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-23 21:13:11 -0700
commit4db5a7e8f78708a3a73c325804d1ca6238351699 (patch)
tree184bf30ae196d5c74b6401887421016b254d88ae
parentde101afb8131c39ace3aeca43fc2092389b7a12e (diff)
do not leak emcc args changes in test_cases
-rw-r--r--tests/test_core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 0b6528e7..991f43a9 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -8952,10 +8952,10 @@ def process(filename):
if '_noasm' in shortname and Settings.ASM_JS:
print self.skip('case "%s" not relevant for asm.js' % shortname)
continue
+ self.emcc_args = emcc_args
if os.path.exists(shortname + '.emcc'):
- self.emcc_args = emcc_args
if not self.emcc_args: continue
- self.emcc_args += json.loads(open(shortname + '.emcc').read())
+ self.emcc_args = self.emcc_args + json.loads(open(shortname + '.emcc').read())
print >> sys.stderr, "Testing case '%s'..." % shortname
output_file = path_from_root('tests', 'cases', shortname + '.txt')
if Settings.QUANTUM_SIZE == 1: