@@ -908,12 +908,12 @@ def GetTestStatus(self, context, sections, defs):
908908
909909class Context (object ):
910910
911- def __init__ (self , workspace , buildspace , verbose , vm , args , expect_fail ,
911+ def __init__ (self , workspace , verbose , vm , args , expect_fail ,
912912 timeout , processor , suppress_dialogs ,
913913 store_unexpected_output , repeat , abort_on_timeout ):
914914 self .workspace = workspace
915- self .buildspace = buildspace
916915 self .verbose = verbose
916+ self .vm = vm
917917 self .node_args = args
918918 self .expect_fail = expect_fail
919919 self .timeout = timeout
@@ -926,6 +926,8 @@ def __init__(self, workspace, buildspace, verbose, vm, args, expect_fail,
926926 self .node_has_crypto = True
927927
928928 def GetVm (self , arch , mode ):
929+ if self .vm is not None :
930+ return self .vm
929931 if arch == 'none' :
930932 name = 'out/Debug/node' if mode == 'debug' else 'out/Release/node'
931933 else :
@@ -1368,7 +1370,7 @@ def BuildOptions():
13681370 dest = "suppress_dialogs" , default = True , action = "store_true" )
13691371 result .add_option ("--no-suppress-dialogs" , help = "Display Windows dialogs for crashing tests" ,
13701372 dest = "suppress_dialogs" , action = "store_false" )
1371- result .add_option ("--shell" , help = "Path to V8 shell " , default = "shell" )
1373+ result .add_option ("--shell" , help = "Path to node executable " , default = None )
13721374 result .add_option ("--store-unexpected-output" ,
13731375 help = "Store the temporary JS files from tests that fails" ,
13741376 dest = "store_unexpected_output" , default = True , action = "store_true" )
@@ -1589,14 +1591,11 @@ def Main():
15891591 options .node_args .append ('--experimental-worker' )
15901592 options .node_args .append (run_worker )
15911593
1592- shell = abspath (options .shell )
1593- buildspace = dirname (shell )
1594-
15951594 processor = GetSpecialCommandProcessor (options .special_command )
1595+
15961596 context = Context (workspace ,
1597- buildspace ,
15981597 VERBOSE ,
1599- shell ,
1598+ options . shell ,
16001599 options .node_args ,
16011600 options .expect_fail ,
16021601 options .timeout ,
0 commit comments