[Lldb-commits] [lldb] r269627 - test: add missing splat
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Sun May 15 20:13:09 PDT 2016
Author: compnerd
Date: Sun May 15 22:13:08 2016
New Revision: 269627
URL: http://llvm.org/viewvc/llvm-project?rev=269627&view=rev
Log:
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`.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/dotest.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dotest.py?rev=269627&r1=269626&r2=269627&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest.py Sun May 15 22:13:08 2016
@@ -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
More information about the lldb-commits
mailing list