llvm.org GIT mirror llvm / af1df62
[test] Fix propagating HOME envvar to unittests Propagate HOME environment variable to unittests. This is necessary to fix test failures resulting from pw_home pointing to a non-existing directory while being overriden with HOME. Apparently Gentoo users hit this sometimes when they override build directory for Portage. Original bug report: https://bugs.gentoo.org/674088 Differential Revision: https://reviews.llvm.org/D56162 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350175 91177308-0d34-0410-b5e6-96231b3b80d8 Michal Gorny 7 months ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3030 if 'TEMP' in os.environ:
3131 config.environment['TEMP'] = os.environ['TEMP']
3232
33 # Propagate HOME as it can be used to override incorrect homedir in passwd
34 # that causes the tests to fail.
35 if 'HOME' in os.environ:
36 config.environment['HOME'] = os.environ['HOME']
37
3338 # Propagate path to symbolizer for ASan/MSan.
3439 for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']:
3540 if symbolizer in os.environ: