[Lldb-commits] [PATCH] D19082: Store absolute path for lldb executable in dotest.py

Francis Ricci via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 13 16:27:09 PDT 2016

fjricci created this revision.
fjricci added reviewers: vharron, zturner, tfiala.
fjricci added subscribers: sas, lldb-commits.

lldb-server tests are currently being skipped on the 
check-lldb target. This is because we get the path of 
lldb-server by modifying the path to the lldb executable.
However, by this point, we've changed directories, and a 
relative path to the build/bin directory will no longer point
to the location of lldb-server.

Storing an absolute path solves this issue.



Index: packages/Python/lldbsuite/test/dotest.py
--- packages/Python/lldbsuite/test/dotest.py
+++ packages/Python/lldbsuite/test/dotest.py
@@ -309,7 +309,7 @@
         configuration.lldbFrameworkPath = args.framework
     if args.executable:
-        lldbtest_config.lldbExec = args.executable
+        lldbtest_config.lldbExec = os.path.realpath(args.executable)
     if args.p:
         if args.p.startswith('-'):

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19082.53637.patch
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160413/4039999e/attachment.bin>

More information about the lldb-commits mailing list