summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-02-01 22:18:02 +0000
committerAdrian Prantl <aprantl@apple.com>2018-02-01 22:18:02 +0000
commite885768640b104be25fea6c15391d632cd2d2de5 (patch)
treec7cdb80003b5c17f283f548935fe693a880387cd /lldb/packages/Python/lldbsuite/test
parent690ab040a56684f644f52e1270fde9d2c1a372c1 (diff)
downloadbcm5719-llvm-e885768640b104be25fea6c15391d632cd2d2de5.tar.gz
bcm5719-llvm-e885768640b104be25fea6c15391d632cd2d2de5.zip
Create a marker for Spotlight to never index $BUILD_DIR.
LLDB queries Spotlight to locate .dSYM bundles based on the UUID embedded in a binary, and because the UUID is a hash of filename and .text section, there *will* be conflicts inside $BUILD_DIR. This should fix the broken green dragon bots. llvm-svn: 324019
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 5a2d44e2e0d..51f12e3a09d 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -1196,8 +1196,17 @@ def run_suite():
# Set up the working directory.
# Note that it's not dotest's job to clean this directory.
- try: os.makedirs(configuration.test_build_dir)
- except: pass
+ import lldbsuite.test.lldbutil as lldbutil
+ build_dir = configuration.test_build_dir
+ lldbutil.mkdir_p(build_dir)
+
+ # Create a marker for Spotlight to never index $BUILD_DIR. LLDB
+ # queries Spotlight to locate .dSYM bundles based on the UUID
+ # embedded in a binary, and because the UUID is a hash of filename
+ # and .text section, there *will* be conflicts inside $BUILD_DIR.
+ if platform.system() == "Darwin":
+ with open(os.path.join(build_dir, '.metadata_never_index'), 'w+'):
+ pass
target_platform = lldb.DBG.GetSelectedPlatform().GetTriple().split('-')[2]
OpenPOWER on IntegriCloud