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
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user