[llvm-commits] [llvm] r110711 - /llvm/trunk/test/lit.cfg

Daniel Dunbar daniel at zuster.org
Tue Aug 10 12:36:25 PDT 2010


Author: ddunbar
Date: Tue Aug 10 14:36:25 2010
New Revision: 110711

URL: http://llvm.org/viewvc/llvm-project?rev=110711&view=rev
Log:
tests: Don't error out if HOME isn't present in t the environment.

Modified:
    llvm/trunk/test/lit.cfg

Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=110711&r1=110710&r2=110711&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Tue Aug 10 14:36:25 2010
@@ -46,7 +46,8 @@
         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', '')





More information about the llvm-commits mailing list