aboutsummaryrefslogtreecommitdiff
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-10 19:36:25 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-10 19:36:25 +0000
commit1321fec0a6de49d7b7376e915264fbd40d0c4414 (patch)
treed4c9b1468028c99429aacb908f095b82c6420a5f /test/lit.cfg
parent5818032521e9e76873ec82104a7c22ffb9d9b277 (diff)
tests: Don't error out if HOME isn't present in t the environment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 5e7e0e4449..4eaa507ec4 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -46,7 +46,8 @@ if llvm_obj_root is not None:
config.environment['PATH'] = path
# Propogate 'HOME' through the environment.
-config.environment['HOME'] = os.environ['HOME']
+if 'HOME' in os.environ:
+ config.environment['HOME'] = os.environ['HOME']
# Propogate LLVM_SRC_ROOT into the environment.
config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '')