Skip to content

Commit 8e5f399

Browse files
thefourtheyeitaloacasas
authored andcommitted
Revert "test: test.py add option to use node in path"
This reverts commit 4198253. PR-URL: nodejs#10613 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 2c32528 commit 8e5f399

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tools/test.py

-11
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import copy
4646

4747
from os.path import join, dirname, abspath, basename, isdir, exists
48-
from distutils.spawn import find_executable
4948
from datetime import datetime
5049
from Queue import Queue, Empty
5150

@@ -866,14 +865,6 @@ def __init__(self, workspace, buildspace, verbose, vm, args, expect_fail,
866865
self.repeat = repeat
867866

868867
def GetVm(self, arch, mode):
869-
parser = BuildOptions()
870-
(options, args) = parser.parse_args()
871-
if not ProcessOptions(options):
872-
parser.print_help()
873-
return 1
874-
if options.path:
875-
name = find_executable("node")
876-
return name
877868
if arch == 'none':
878869
name = 'out/Debug/node' if mode == 'debug' else 'out/Release/node'
879870
else:
@@ -1394,8 +1385,6 @@ def BuildOptions():
13941385
result.add_option('--repeat',
13951386
help='Number of times to repeat given tests',
13961387
default=1, type="int")
1397-
result.add_option('--path',
1398-
help='Use node in the path rather than out/Release', default=False, action="store_true")
13991388
return result
14001389

14011390

0 commit comments

Comments
 (0)