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

Daniel Dunbar daniel at zuster.org
Wed Jun 23 11:06:16 PDT 2010


Author: ddunbar
Date: Wed Jun 23 13:06:16 2010
New Revision: 106638

URL: http://llvm.org/viewvc/llvm-project?rev=106638&view=rev
Log:
tests: Tweak lit.cfg to fix breakage with out-of-dir lookup.

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=106638&r1=106637&r2=106638&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Wed Jun 23 13:06:16 2010
@@ -49,7 +49,7 @@
 config.environment['HOME'] = os.environ['HOME']
 
 # Propogate LLVM_SRC_ROOT into the environment.
-config.environment['LLVM_SRC_ROOT'] = config.llvm_src_root
+config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '')
 
 # Propogate PYTHON_EXEUTABLE into the environment
 config.environment['PYTHON_EXECUTABLE'] = getattr(config, 'python_executable',





More information about the llvm-commits mailing list