Specify the Python executable on the command line in gm.py

Launching Python scripts can fail on Windows if the Python executable
isn't given as the first argument to the shell. This change adds the
path of the current Python executable, as per the behavior of v8gen.py

Change-Id: Iedaf57bcafc4c6aa6ebb89e945ee967cf393da04
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1497522
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60023}
This commit is contained in:
Bill Ticehurst 2019-03-03 00:53:48 -08:00 committed by Commit Bot
parent b71325230d
commit f8acd898de

View File

@ -294,8 +294,9 @@ class Config(object):
tests = ""
else:
tests = " ".join(self.tests)
return _Call(os.path.join("tools", "run-tests.py") + " --outdir=%s %s" %
(GetPath(self.arch, self.mode), tests))
return _Call('"%s" ' % sys.executable +
os.path.join("tools", "run-tests.py") +
" --outdir=%s %s" % (GetPath(self.arch, self.mode), tests))
def GetTestBinary(argstring):
for suite in TESTSUITES_TARGETS: