From f8acd898de5391050ff1c2ebb700c01df672798d Mon Sep 17 00:00:00 2001 From: Bill Ticehurst Date: Sun, 3 Mar 2019 00:53:48 -0800 Subject: [PATCH] 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 Commit-Queue: Jakob Kummerow Cr-Commit-Position: refs/heads/master@{#60023} --- tools/dev/gm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/dev/gm.py b/tools/dev/gm.py index 5a71aea108..bc808c31ae 100755 --- a/tools/dev/gm.py +++ b/tools/dev/gm.py @@ -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: