diff options
author | Hans Wennborg <hans@hanshq.net> | 2018-09-04 09:21:35 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2018-09-04 09:21:35 +0000 |
commit | 1a558539efc93d166ead9439a13c5226359c394e (patch) | |
tree | 388684d1562eddb2ff347b1d884df22084850dc7 | |
parent | 8be5c4fc9a8f2bb3f77d5175e021fcc350d6236a (diff) |
Merging r341244:
------------------------------------------------------------------------
r341244 | tstellar | 2018-08-31 22:15:31 +0200 (Fri, 31 Aug 2018) | 11 lines
lit: Use sys.executable for executing builtin commands
Summary:
The python executable may not exist on all systems so use sys.executable
instead.
Reviewers: ddunbar, stella.stamenova
Subscribers: delcypher, llvm-commits
Differential Revision: https://reviews.llvm.org/D51511
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@341349 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/lit/lit/TestRunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py index e304381ff47..4d903b4a6f4 100644 --- a/utils/lit/lit/TestRunner.py +++ b/utils/lit/lit/TestRunner.py @@ -879,7 +879,7 @@ def _executeShCmd(cmd, shenv, results, timeoutHelper): # Expand all glob expressions args = expand_glob_expressions(args, cmd_shenv.cwd) if is_builtin_cmd: - args.insert(0, "python") + args.insert(0, sys.executable) args[1] = os.path.join(builtin_commands_dir ,args[1] + ".py") # On Windows, do our own command line quoting for better compatibility |