aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2014-03-28 23:18:22 -0400
committerJukka Jylänki <jujjyl@gmail.com>2014-03-28 23:21:44 -0400
commit10183ed6c659c37d0393198f2a64f0e8f7e654f5 (patch)
tree620a092a4a865ed16206a790329b87513d00b4d8
parentcde38c81c2330c139fa5d7d12a9e3688c5059f9c (diff)
Fix test runner banned engine filtering for SPIDERMONKEY_ENGINE when cmdline params are automatically added to that engine.
-rw-r--r--tools/shared.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/shared.py b/tools/shared.py
index ac4b42ea..da9a822c 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -709,14 +709,13 @@ else:
# Engine tweaks
try:
- SPIDERMONKEY_ENGINE = listify(SPIDERMONKEY_ENGINE)
- if 'gcparam' not in str(SPIDERMONKEY_ENGINE):
- new_spidermonkey = SPIDERMONKEY_ENGINE
+ new_spidermonkey = listify(SPIDERMONKEY_ENGINE)
+ if 'gcparam' not in str(new_spidermonkey):
new_spidermonkey += ['-e', "gcparam('maxBytes', 1024*1024*1024);"] # Our very large files need lots of gc heap
- JS_ENGINES = map(lambda x: x if x != SPIDERMONKEY_ENGINE else new_spidermonkey, JS_ENGINES)
- SPIDERMONKEY_ENGINE = new_spidermonkey
- if '-w' not in SPIDERMONKEY_ENGINE:
- SPIDERMONKEY_ENGINE += ['-w']
+ if '-w' not in str(new_spidermonkey):
+ new_spidermonkey += ['-w']
+ JS_ENGINES = map(lambda x: new_spidermonkey if x == SPIDERMONKEY_ENGINE else x, JS_ENGINES)
+ SPIDERMONKEY_ENGINE = new_spidermonkey
except NameError:
pass