Skip to content

Commit

Permalink
Store absolute path for lldb executable in dotest.py
Browse files Browse the repository at this point in the history
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

llvm-svn: 270131
  • Loading branch information
fjricci committed May 19, 2016
1 parent bec7731 commit ff627a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/packages/Python/lldbsuite/test/dotest.py
Expand Up @@ -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('-'):
Expand Down

0 comments on commit ff627a7

Please sign in to comment.