summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2018-08-31 20:15:31 +0000
committerTom Stellard <tstellar@redhat.com>2018-08-31 20:15:31 +0000
commit04cbe721dae56eef0bd8ae26426395f53ecb72c2 (patch)
tree4da169a14fb66da616b93e7d5a0b0f0fe530e7ec
parentf135ac4bbca73e3eacf621f4ae4ba1ed4eb73d1f (diff)
downloadbcm5719-llvm-04cbe721dae56eef0bd8ae26426395f53ecb72c2.tar.gz
bcm5719-llvm-04cbe721dae56eef0bd8ae26426395f53ecb72c2.zip
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 llvm-svn: 341244
-rw-r--r--llvm/utils/lit/lit/TestRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py
index e304381ff47..4d903b4a6f4 100644
--- a/llvm/utils/lit/lit/TestRunner.py
+++ b/llvm/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
OpenPOWER on IntegriCloud