tests: Propogate the HOME environment variable through to tests. I'm ambivalent
authorDaniel Dunbar <daniel@zuster.org>
Thu, 25 Feb 2010 22:09:09 +0000 (22:09 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 25 Feb 2010 22:09:09 +0000 (22:09 +0000)
about this, but it can be useful for users who use ccache, since the LLVMC tests
are fond of calling gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97171 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index ad73e98bfe78ade27589fcd965df70afba9c1222..929871a1d225d53395a3584959d965e65e2c7143 100644 (file)
@@ -45,6 +45,9 @@ if llvm_obj_root is not None:
                                      config.environment['PATH']))
         config.environment['PATH'] = path
 
+# Propogate 'HOME' through the environment.
+config.environment['HOME'] = os.environ['HOME']
+
 ###
 
 import os