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
This commit is contained in:
Daniel Dunbar 2010-08-10 19:36:25 +00:00
parent 5818032521
commit 1321fec0a6

View File

@ -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', '')