summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/lit.cfg.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-10-10 17:27:09 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-10-10 17:27:09 +0000
commit27c23653aec79e447193281f2f29da15d8bb1bf9 (patch)
treec019c448c0e39f2303e1d0a50130afd63eab0c9c /lldb/test/Shell/lit.cfg.py
parent2d2cf936ac6c80fdc851fbd489c192e9bd8c4e9a (diff)
downloadbcm5719-llvm-27c23653aec79e447193281f2f29da15d8bb1bf9.tar.gz
bcm5719-llvm-27c23653aec79e447193281f2f29da15d8bb1bf9.zip
[test] Use a different module cache for Shell and API tests.
Before the test reorganization, everything was part of a single test suite with a single module cache. Now that things are properly separated this is no longer the case. Only the shell tests inherited the logic to properly configure and wipe the module caches. This patch adds that logic back for the API tests. While doing so, I noticed that we were configuring a Clang module cache in CMake, but weren't actually using it from dotest.py. I included a fix for that in this patch as well. Differential revision: https://reviews.llvm.org/D68755 llvm-svn: 374386
Diffstat (limited to 'lldb/test/Shell/lit.cfg.py')
-rw-r--r--lldb/test/Shell/lit.cfg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/Shell/lit.cfg.py b/lldb/test/Shell/lit.cfg.py
index 3503e956922..6f0ca673237 100644
--- a/lldb/test/Shell/lit.cfg.py
+++ b/lldb/test/Shell/lit.cfg.py
@@ -69,9 +69,9 @@ llvm_config.feature_config(
# incremental build whenever clang changes underneath, so doing it once per
# lit.py invocation is close enough.
for cachedir in [config.clang_module_cache, config.lldb_module_cache]:
- if os.path.isdir(cachedir):
- print("Deleting module cache at %s."%cachedir)
- shutil.rmtree(cachedir)
+ if os.path.isdir(cachedir):
+ print("Deleting module cache at %s."%cachedir)
+ shutil.rmtree(cachedir)
# Set a default per-test timeout of 10 minutes. Setting a timeout per test
# requires that killProcessAndChildren() is supported on the platform and
OpenPOWER on IntegriCloud