Support MSVS build directories in tools/test.py
This commit is contained in:
parent
8ec31a3362
commit
4fa13152af
@ -667,8 +667,19 @@ class Context(object):
|
||||
else:
|
||||
name = 'out/Release/node'
|
||||
|
||||
if utils.IsWindows() and not name.endswith('.exe'):
|
||||
name = os.path.abspath(name + '.exe')
|
||||
# Currently GYP does not support output_dir for MSVS.
|
||||
# http://code.google.com/p/gyp/issues/detail?id=40
|
||||
# It will put the builds into Release/node.exe or Debug/node.exe
|
||||
if utils.IsWindows():
|
||||
out_dir = os.path.join(dirname(__file__), "..", "out")
|
||||
if not exists(out_dir):
|
||||
if mode == 'debug':
|
||||
name = os.path.abspath('Debug/node.exe')
|
||||
else:
|
||||
name = os.path.abspath('Release/node.exe')
|
||||
else:
|
||||
name = os.path.abspath(name + '.exe')
|
||||
|
||||
return name
|
||||
|
||||
def GetVmCommand(self, testcase, mode):
|
||||
|
Loading…
x
Reference in New Issue
Block a user