Skip to content

Commit

Permalink
test: make jsEngine avaliable in status files
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocgreis committed Feb 19, 2016
1 parent 42bc284 commit 64b2b9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1510,10 +1510,16 @@ def Main():
if not exists(vm):
print "Can't find shell executable: '%s'" % vm
continue
jsEngineContext = Execute([vm, "-p", "process.jsEngine"], context)
jsEngine = jsEngineContext.stdout.rstrip()
if jsEngineContext.exit_code is not 0 or jsEngine == "undefined":
print "Can't determine the jsEngine of: '%s'" % vm
continue
env = {
'mode': mode,
'system': utils.GuessOS(),
'arch': arch,
'jsengine': jsEngine, # variable names are lowercased
}
test_list = root.ListTests([], path, context, arch, mode)
unclassified_tests += test_list
Expand Down

0 comments on commit 64b2b9b

Please sign in to comment.