diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-03-12 20:52:36 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-03-12 20:52:36 +0000 |
commit | 1cc1c5f2983affb3707b3baca00d54deda3566c6 (patch) | |
tree | 3f5e42309e41db4e0c80b6fb1f9258694f8dc846 /lldb/packages/Python/lldbsuite/test/lldbtest.py | |
parent | 3a408538f0913f99f5c726734c684710a4304707 (diff) | |
download | bcm5719-llvm-1cc1c5f2983affb3707b3baca00d54deda3566c6.tar.gz bcm5719-llvm-1cc1c5f2983affb3707b3baca00d54deda3566c6.zip |
Introduce a setting to disable Spotlight while running the test suite
This is a more principled approach to disabling Spotlight .dSYM
lookups while running the testsuite, most importantly it also works
for the LIT-based tests, which I overlooked in my initial fix
(renaming the test build dir to lldb-tests.noindex).
Differential Revision: https://reviews.llvm.org/D44342
llvm-svn: 327330
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbtest.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index 925cddd38f1..3d10418a8ca 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -1917,13 +1917,18 @@ class TestBase(Base): # decorators. Base.setUp(self) - # Set the clang modules cache path. if self.child: + # Set the clang modules cache path. assert(self.getDebugInfo() == 'default') mod_cache = os.path.join(self.getBuildDir(), "module-cache") self.runCmd('settings set symbols.clang-modules-cache-path "%s"' % mod_cache) + # Disable Spotlight lookup. The testsuite creates + # different binaries with the same UUID, because they only + # differ in the debug info, which is not being hashed. + self.runCmd('settings set symbols.enable-external-lookup false') + if "LLDB_MAX_LAUNCH_COUNT" in os.environ: self.maxLaunchCount = int(os.environ["LLDB_MAX_LAUNCH_COUNT"]) |