[PATCH] D56162: [test] Fix propagating HOME envvar to unittests

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 31 05:51:53 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL350175: [test] Fix propagating HOME envvar to unittests (authored by mgorny, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D56162?vs=179741&id=179756#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56162/new/

https://reviews.llvm.org/D56162

Files:
  llvm/trunk/test/Unit/lit.cfg.py


Index: llvm/trunk/test/Unit/lit.cfg.py
===================================================================
--- llvm/trunk/test/Unit/lit.cfg.py
+++ llvm/trunk/test/Unit/lit.cfg.py
@@ -31,6 +31,11 @@
 if 'TEMP' in os.environ:
     config.environment['TEMP'] = os.environ['TEMP']
 
+# Propagate HOME as it can be used to override incorrect homedir in passwd
+# that causes the tests to fail.
+if 'HOME' in os.environ:
+    config.environment['HOME'] = os.environ['HOME']
+
 # Propagate path to symbolizer for ASan/MSan.
 for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']:
     if symbolizer in os.environ:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56162.179756.patch
Type: text/x-patch
Size: 620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181231/5c244022/attachment.bin>


More information about the llvm-commits mailing list