diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-10-17 12:10:12 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-10-17 12:10:12 +0000 |
commit | 9f64a56ababffecbe5a818ecbe5b6fbfc1d7b974 (patch) | |
tree | 86e9e5c868505023fcfc1d9e68adf8e443030025 /utils/lit | |
parent | f9a5e40b90e5a98cfae5c0f8a42eedd71c849dbc (diff) | |
download | external_llvm-9f64a56ababffecbe5a818ecbe5b6fbfc1d7b974.zip external_llvm-9f64a56ababffecbe5a818ecbe5b6fbfc1d7b974.tar.gz external_llvm-9f64a56ababffecbe5a818ecbe5b6fbfc1d7b974.tar.bz2 |
Lit: Introduce an environment variable, $LIT_PRESERVES_TMP, to preserve TMP (and TEMP).
This is intended to check how many temporary files would be generated in automated builders.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r-- | utils/lit/lit/TestingConfig.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/lit/lit/TestingConfig.py b/utils/lit/lit/TestingConfig.py index d541539..748cf1f 100644 --- a/utils/lit/lit/TestingConfig.py +++ b/utils/lit/lit/TestingConfig.py @@ -35,6 +35,15 @@ class TestingConfig: 'TMP' : os.environ.get('TMP',''), }) + # The option to preserve TMP (and TEMP). + # This is intended to check how many temporary files would be generated + # in automated builders. + if os.environ.has_key('LIT_PRESERVES_TMP'): + environment.update({ + 'TEMP' : os.environ.get('TEMP',''), + 'TMP' : os.environ.get('TMP',''), + }) + # Set the default available features based on the LitConfig. available_features = [] if litConfig.useValgrind: |