Browse Source

Revert "test: test.py add option to use node in path"

This reverts commit 4198253a18.

PR-URL: https://github.com/nodejs/node/pull/10613

Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6
Sakthipriyan Vairamani (thefourtheye) 8 years ago
parent
commit
26bf9545e0
No known key found for this signature in database GPG Key ID: C71F2437E9591758
  1. 11
      tools/test.py

11
tools/test.py

@ -45,7 +45,6 @@ import errno
import copy import copy
from os.path import join, dirname, abspath, basename, isdir, exists from os.path import join, dirname, abspath, basename, isdir, exists
from distutils.spawn import find_executable
from datetime import datetime from datetime import datetime
from Queue import Queue, Empty from Queue import Queue, Empty
@ -866,14 +865,6 @@ class Context(object):
self.repeat = repeat self.repeat = repeat
def GetVm(self, arch, mode): def GetVm(self, arch, mode):
parser = BuildOptions()
(options, args) = parser.parse_args()
if not ProcessOptions(options):
parser.print_help()
return 1
if options.path:
name = find_executable("node")
return name
if arch == 'none': if arch == 'none':
name = 'out/Debug/node' if mode == 'debug' else 'out/Release/node' name = 'out/Debug/node' if mode == 'debug' else 'out/Release/node'
else: else:
@ -1394,8 +1385,6 @@ def BuildOptions():
result.add_option('--repeat', result.add_option('--repeat',
help='Number of times to repeat given tests', help='Number of times to repeat given tests',
default=1, type="int") default=1, type="int")
result.add_option('--path',
help='Use node in the path rather than out/Release', default=False, action="store_true")
return result return result

Loading…
Cancel
Save