summaryrefslogtreecommitdiff
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-06-12 16:21:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-06-12 16:21:19 +0000
commit9b2cb695b38f0a33d7559639c265821ae74b97dc (patch)
tree82974d97e7531df2b8fe4a9e6b717feeee82ebdd /test/lit.cfg
parent1befb9b2df7b287872021518cedce4a0aeca3b95 (diff)
downloadllvm-9b2cb695b38f0a33d7559639c265821ae74b97dc.tar.gz
llvm-9b2cb695b38f0a33d7559639c265821ae74b97dc.tar.bz2
llvm-9b2cb695b38f0a33d7559639c265821ae74b97dc.tar.xz
tests: Propogate LLVM_SRC_ROOT and PYTHON_EXECUTABLE environment variables to tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index fd3120a29f..65e0dc7ea0 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -48,6 +48,13 @@ if llvm_obj_root is not None:
# Propogate 'HOME' through the environment.
config.environment['HOME'] = os.environ['HOME']
+# Propogate LLVM_SRC_ROOT into the environment.
+config.environment['LLVM_SRC_ROOT'] = config.llvm_src_root
+
+# Propogate PYTHON_EXEUTABLE into the environment
+config.environment['PYTHON_EXECUTABLE'] = getattr(config, 'python_executable',
+ '')
+
###
import os