From 4680f0c7e609f0d84907a625f8c5896bb8ef1677 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 10 May 2017 00:23:58 +0000 Subject: [PATCH] Improve how LIT reports the added environment variables git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@302607 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/libcxx/test/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/libcxx/test/config.py b/utils/libcxx/test/config.py index 19b4ecdd9..fd6764737 100644 --- a/utils/libcxx/test/config.py +++ b/utils/libcxx/test/config.py @@ -160,7 +160,11 @@ class Configuration(object): # Print as list to prevent "set([...])" from being printed. self.lit_config.note('Using available_features: %s' % list(self.config.available_features)) - self.lit_config.note('Using environment: %r' % self.exec_env) + show_env_vars = {} + for k,v in self.exec_env.items(): + if k not in os.environ or os.environ[k] != v: + show_env_vars[k] = v + self.lit_config.note('Adding environment variables: %r' % show_env_vars) sys.stderr.flush() # Force flushing to avoid broken output on Windows def get_test_format(self):