@@ -908,12 +908,12 @@ def GetTestStatus(self, context, sections, defs):
908
908
909
909
class Context (object ):
910
910
911
- def __init__ (self , workspace , buildspace , verbose , vm , args , expect_fail ,
911
+ def __init__ (self , workspace , verbose , vm , args , expect_fail ,
912
912
timeout , processor , suppress_dialogs ,
913
913
store_unexpected_output , repeat , abort_on_timeout ):
914
914
self .workspace = workspace
915
- self .buildspace = buildspace
916
915
self .verbose = verbose
916
+ self .vm = vm
917
917
self .node_args = args
918
918
self .expect_fail = expect_fail
919
919
self .timeout = timeout
@@ -926,6 +926,8 @@ def __init__(self, workspace, buildspace, verbose, vm, args, expect_fail,
926
926
self .node_has_crypto = True
927
927
928
928
def GetVm (self , arch , mode ):
929
+ if self .vm is not None :
930
+ return self .vm
929
931
if arch == 'none' :
930
932
name = 'out/Debug/node' if mode == 'debug' else 'out/Release/node'
931
933
else :
@@ -1368,7 +1370,7 @@ def BuildOptions():
1368
1370
dest = "suppress_dialogs" , default = True , action = "store_true" )
1369
1371
result .add_option ("--no-suppress-dialogs" , help = "Display Windows dialogs for crashing tests" ,
1370
1372
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 )
1372
1374
result .add_option ("--store-unexpected-output" ,
1373
1375
help = "Store the temporary JS files from tests that fails" ,
1374
1376
dest = "store_unexpected_output" , default = True , action = "store_true" )
@@ -1589,14 +1591,11 @@ def Main():
1589
1591
options .node_args .append ('--experimental-worker' )
1590
1592
options .node_args .append (run_worker )
1591
1593
1592
- shell = abspath (options .shell )
1593
- buildspace = dirname (shell )
1594
-
1595
1594
processor = GetSpecialCommandProcessor (options .special_command )
1595
+
1596
1596
context = Context (workspace ,
1597
- buildspace ,
1598
1597
VERBOSE ,
1599
- shell ,
1598
+ options . shell ,
1600
1599
options .node_args ,
1601
1600
options .expect_fail ,
1602
1601
options .timeout ,
0 commit comments