tests: Don't error out if HOME isn't present in t the environment.

llvm-svn: 110711
This commit is contained in:
Daniel Dunbar 2010-08-10 19:36:25 +00:00
parent 784a286b92
commit eb15b8b44d

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