summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-05-16 03:13:08 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-05-16 03:13:08 +0000
commitc0d0e361970ac7bd8869c24e6fd00e890a1c115f (patch)
tree648cca504d20efc6b3da6147e413b553946bf639 /lldb/packages/Python/lldbsuite
parent81eadde6caf1660592d29d3069f973567edf068e (diff)
downloadbcm5719-llvm-c0d0e361970ac7bd8869c24e6fd00e890a1c115f.tar.gz
bcm5719-llvm-c0d0e361970ac7bd8869c24e6fd00e890a1c115f.zip
test: add missing splat
The parameter here is a list, not a string. Ensure that the we splat the list into arguments prior to invoke os.path.join. This would previously fail with a `startswith` is not a member of `list`. llvm-svn: 269627
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 6c35d81e3ab..d473186d574 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -640,7 +640,7 @@ def setupSysPath():
python_resource_dir = ['LLDB.framework', 'Resources', 'Python']
outputPaths = getXcodeOutputPaths(lldbRootDirectory)
for outputPath in outputPaths:
- candidatePath = os.path.join(outputPath, python_resource_dir)
+ candidatePath = os.path.join(outputPath, *python_resource_dir)
if os.path.isfile(os.path.join(candidatePath, init_in_python_dir)):
lldbPythonDir = candidatePath
break
OpenPOWER on IntegriCloud