summaryrefslogtreecommitdiff
path: root/utils/lit/tests/lit.cfg
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-14 05:07:09 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-14 05:07:09 +0000
commit6b78ef3762d0b48ac4493e81599be7af1491f8a6 (patch)
tree6a5888dd58645c1472738ab9cfc6923bec4cb30a /utils/lit/tests/lit.cfg
parent5403214852da123d09b91377ad0fa4543afc816c (diff)
downloadllvm-6b78ef3762d0b48ac4493e81599be7af1491f8a6.tar.gz
llvm-6b78ef3762d0b48ac4493e81599be7af1491f8a6.tar.bz2
llvm-6b78ef3762d0b48ac4493e81599be7af1491f8a6.tar.xz
[lit] Fix tests to execute lit with same python as invoked with.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/tests/lit.cfg')
-rw-r--r--utils/lit/tests/lit.cfg5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/lit/tests/lit.cfg b/utils/lit/tests/lit.cfg
index f148c911aa..a8d259136e 100644
--- a/utils/lit/tests/lit.cfg
+++ b/utils/lit/tests/lit.cfg
@@ -1,6 +1,7 @@
# -*- Python -*-
import os
+import sys
import lit.formats
@@ -29,7 +30,9 @@ config.environment['PYTHONPATH'] = src_root
config.substitutions.append(('%{src_root}', src_root))
config.substitutions.append(('%{inputs}', os.path.join(
src_root, 'tests', 'Inputs')))
-config.substitutions.append(('%{lit}', os.path.join(src_root, 'lit.py')))
+config.substitutions.append(('%{lit}', "%%{python} %s" % (
+ os.path.join(src_root, 'lit.py'),)))
+config.substitutions.append(('%{python}', sys.executable))
# Enable coverage.py reporting, assuming the coverage module has been installed
# and sitecustomize.py in the virtualenv has been modified appropriately.