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 | 199f138a073440cb9b93cbafd3c008739e11661d (patch) | |
| tree | 0f03167e4d8ccfbc0d964c53f283739aa753b024 /llvm/utils/lit | |
| parent | 4bbf273173a7258bc23af62b541cb7aed0c18004 (diff) | |
| download | bcm5719-llvm-199f138a073440cb9b93cbafd3c008739e11661d.tar.gz bcm5719-llvm-199f138a073440cb9b93cbafd3c008739e11661d.zip | |
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.
llvm-svn: 192887
Diffstat (limited to 'llvm/utils/lit')
| -rw-r--r-- | llvm/utils/lit/lit/TestingConfig.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py index d5415396906..748cf1f6b80 100644 --- a/llvm/utils/lit/lit/TestingConfig.py +++ b/llvm/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: |

