Also added BuildAndIntegration to the directories to search for an existing
lldb.py module. The priorities to search for are Debug, Release, then
BuildAndIntegration. You can always override this with a valid PYTHONPATH
environment variable before running the test driver.
For example:
$ PYTHONPATH=/Find/My/LLDB/Module/Here ./dotest.py -v .
Python runtime will try to locate the lldb.py module from
/Find/My/LLDB/Module/Here first before trying the Debug, Release, and then
BuildAndIntegration directories.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113991 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/dotest.py b/test/dotest.py
index 9a2e4bd..86fb737 100755
--- a/test/dotest.py
+++ b/test/dotest.py
@@ -99,16 +99,20 @@
'Resources', 'Python')
relPath = os.path.join(base, 'build', 'Release', 'LLDB.framework',
'Resources', 'Python')
+ baiPath = os.path.join(base, 'build', 'BuildAndIntegration',
+ 'LLDB.framework', 'Resources', 'Python')
lldbPath = None
if os.path.isfile(os.path.join(dbgPath, 'lldb.py')):
lldbPath = dbgPath
elif os.path.isfile(os.path.join(relPath, 'lldb.py')):
lldbPath = relPath
+ elif os.path.isfile(os.path.join(baiPath, 'lldb.py')):
+ lldbPath = baiPath
if not lldbPath:
- print 'This script requires lldb.py to be in either ' + dbgPath,
- print ' or' + relPath
+ print 'This script requires lldb.py to be in either ' + dbgPath + ',',
+ print relPath + ', or ' + baiPath
sys.exit(-1)
sys.path.append(lldbPath)