@@ -918,12 +918,12 @@ def GetTestStatus(self, context, sections, defs):
918918
919919class Context (object ):
920920
921- def __init__ (self , workspace , buildspace , verbose , vm , args , expect_fail ,
921+ def __init__ (self , workspace , verbose , vm , args , expect_fail ,
922922timeout , processor , suppress_dialogs ,
923923store_unexpected_output , repeat , abort_on_timeout ):
924924self .workspace = workspace
925- self .buildspace = buildspace
926925self .verbose = verbose
926+ self .vm = vm
927927self .node_args = args
928928self .expect_fail = expect_fail
929929self .timeout = timeout
@@ -936,6 +936,8 @@ def __init__(self, workspace, buildspace, verbose, vm, args, expect_fail,
936936self .node_has_crypto = True
937937
938938def GetVm (self , arch , mode ):
939+ if self .vm is not None :
940+ return self .vm
939941if arch == 'none' :
940942name = 'out/Debug/node' if mode == 'debug' else 'out/Release/node'
941943else :
@@ -1381,7 +1383,7 @@ def BuildOptions():
13811383dest = "suppress_dialogs" , default = True , action = "store_true" )
13821384result .add_option ("--no-suppress-dialogs" , help = "Display Windows dialogs for crashing tests" ,
13831385dest = "suppress_dialogs" , action = "store_false" )
1384- result .add_option ("--shell" , help = "Path to V8 shell " , default = "shell" )
1386+ result .add_option ("--shell" , help = "Path to node executable " , default = None )
13851387result .add_option ("--store-unexpected-output" ,
13861388help = "Store the temporary JS files from tests that fails" ,
13871389dest = "store_unexpected_output" , default = True , action = "store_true" )
@@ -1605,14 +1607,11 @@ def Main():
16051607run_worker = join (workspace , "tools" , "run-worker.js" )
16061608options .node_args .append (run_worker )
16071609
1608- shell = abspath (options .shell )
1609- buildspace = dirname (shell )
1610-
16111610processor = GetSpecialCommandProcessor (options .special_command )
1611+
16121612context = Context (workspace ,
1613- buildspace ,
16141613VERBOSE ,
1615- shell ,
1614+ options . shell ,
16161615options .node_args ,
16171616options .expect_fail ,
16181617options .timeout ,
0 commit comments