Fix a typo in mac SIP workaround

presumably the or subexpression was meant to be evaluated first. The way
it is now means that we apply the workaround for any python in `/usr`,
which matches pretty much every unix system.

llvm-svn: 341167
This commit is contained in:
Pavel Labath 2018-08-31 06:01:02 +00:00
parent bca94773b7
commit d9e8c773de
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@ class LLDBTest(TestFormat):
# libraries into system binaries, but this can be worked around by
# copying the binary into a different location.
if 'DYLD_INSERT_LIBRARIES' in test.config.environment and \
sys.executable.startswith('/System/') or \
sys.executable.startswith('/usr/'):
(sys.executable.startswith('/System/') or \
sys.executable.startswith('/usr/')):
builddir = getBuildDir(cmd)
mkdir_p(builddir)
copied_python = os.path.join(builddir, 'copied-system-python')