[Lldb-commits] [lldb] r267463 - Store absolute path for lldb executable in dotest.py

Francis Ricci via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 25 13:36:22 PDT 2016

Author: fjricci
Date: Mon Apr 25 15:36:22 2016
New Revision: 267463

URL: http://llvm.org/viewvc/llvm-project?rev=267463&view=rev
Store absolute path for lldb executable in dotest.py

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.

Reviewers: vharron, zturner, tfiala, labath

Subscribers: labath, lldb-commits, sas

Differential Revision: http://reviews.llvm.org/D19082


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=267463&r1=267462&r2=267463&view=diff
--- lldb/trunk/packages/Python/lldbsuite/test/dotest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest.py Mon Apr 25 15:36:22 2016
@@ -307,7 +307,7 @@ def parseOptionsAndInitTestdirs():
         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('-'):

More information about the lldb-commits mailing list