When specifying a relative path for the --framework option to dotest.py, Python would end up being confused and unable to locate the embedded_interpreter module, causing every testcase that uses the Script Interpreter (e.g. functionalities/data-formatter/data-formatter-stl/libstdcpp) to fail without even trying

This checkin fixes that problem by absolutizing the path before pushing it to the sys.path

llvm-svn: 179341
This commit is contained in:
Enrico Granata 2013-04-11 23:40:59 +00:00
parent da0ab491b6
commit ea6a58e2ae
1 changed files with 2 additions and 0 deletions

View File

@ -913,6 +913,8 @@ def setupSysPath():
if frameWithVersion != "" :
lldbPath = before + "LLDB.framework" + after
lldbPath = os.path.abspath(lldbPath)
# If tests need to find LLDB_FRAMEWORK, now they can do it
os.environ["LLDB_FRAMEWORK"] = os.path.dirname(os.path.dirname(lldbPath))