[llvm-branch-commits] [lldb] r270131 - Store absolute path for lldb executable in dotest.py

Francis Ricci via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu May 19 14:02:55 PDT 2016


Author: fjricci
Date: Thu May 19 16:02:55 2016
New Revision: 270131

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

Summary:
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

This is a cherry-pick of r267463

Modified:
    lldb/branches/release_38/packages/Python/lldbsuite/test/dotest.py

Modified: lldb/branches/release_38/packages/Python/lldbsuite/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/release_38/packages/Python/lldbsuite/test/dotest.py?rev=270131&r1=270130&r2=270131&view=diff
==============================================================================
--- lldb/branches/release_38/packages/Python/lldbsuite/test/dotest.py (original)
+++ lldb/branches/release_38/packages/Python/lldbsuite/test/dotest.py Thu May 19 16:02:55 2016
@@ -309,7 +309,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 llvm-branch-commits mailing list