From eb15b8b44decdb15305a652199417edc2b30d177 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 10 Aug 2010 19:36:25 +0000 Subject: [PATCH] tests: Don't error out if HOME isn't present in t the environment. llvm-svn: 110711 --- test/lit.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lit.cfg b/test/lit.cfg index 5e7e0e44498..4eaa507ec42 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', '')