aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-28 20:27:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-03-28 20:27:56 -0700
commit13e7b4cf2453c7332ed41297e4a7343747f2274f (patch)
tree620a092a4a865ed16206a790329b87513d00b4d8 /tools/shared.py
parentcde38c81c2330c139fa5d7d12a9e3688c5059f9c (diff)
parent10183ed6c659c37d0393198f2a64f0e8f7e654f5 (diff)
Merge pull request #2262 from juj/fix_js_engine_filtering
Fix test runner banned engine filtering for SPIDERMONKEY_ENGINE.
Diffstat (limited to 'tools/shared.py')
-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