[libcxx-commits] [PATCH] D130843: [libcxx] [test] Propagate host environment to libc++ test suite
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Aug 2 18:53:46 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG39d4e169d35b: [libc++][test] Propagate host environment to libc++ test suite (authored by mgorny, committed by ldionne).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130843/new/
https://reviews.llvm.org/D130843
Files:
libcxx/test/libcxx/selftest/dsl/dsl.sh.py
libcxx/utils/libcxx/test/newconfig.py
Index: libcxx/utils/libcxx/test/newconfig.py
===================================================================
--- libcxx/utils/libcxx/test/newconfig.py
+++ libcxx/utils/libcxx/test/newconfig.py
@@ -6,6 +6,9 @@
#
#===----------------------------------------------------------------------===##
+import os
+
+
def _getSubstitution(substitution, config):
for (orig, replacement) in config.substitutions:
if orig == substitution:
@@ -14,6 +17,7 @@
def configure(parameters, features, config, lit_config):
note = lambda s: lit_config.note("({}) {}".format(config.name, s))
+ config.environment = dict(os.environ)
# Apply the actions supplied by parameters to the configuration first, since
# parameters are things that we request explicitly and which might influence
Index: libcxx/test/libcxx/selftest/dsl/dsl.sh.py
===================================================================
--- libcxx/test/libcxx/selftest/dsl/dsl.sh.py
+++ libcxx/test/libcxx/selftest/dsl/dsl.sh.py
@@ -64,6 +64,7 @@
params={})
self.config = lit.TestingConfig.TestingConfig.fromdefaults(self.litConfig)
+ self.config.environment = dict(os.environ)
self.config.test_source_root = SOURCE_ROOT
self.config.test_exec_root = EXEC_PATH
self.config.recursiveExpansionLimit = 10
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130843.449509.patch
Type: text/x-patch
Size: 1331 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220803/d11d20fb/attachment.bin>
More information about the libcxx-commits
mailing list