Skip to content

Commit

Permalink
Update gdbremote_testcase to accomodate new adb:// scheme.
Browse files Browse the repository at this point in the history
Reviewers: chying, ovyalov

Reviewed By: chying, ovyalov

Subscribers: lldb-commits

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

llvm-svn: 236560
  • Loading branch information
chaoren committed May 6, 2015
1 parent ce29096 commit f9c4c42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lldb/test/tools/lldb-server/gdbremote_testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def setUp(self):
self.named_pipe_fd = None
self.stub_sends_two_stop_notifications_on_kill = False
if lldb.platform_url:
self.stub_hostname = re.match(".*://(.*):[0-9]+", lldb.platform_url).group(1)
scheme, host = re.match('(.+)://(.+):\d+', lldb.platform_url).groups()
self.stub_hostname = 'localhost' if scheme == 'adb' else host
else:
self.stub_hostname = "localhost"

Expand Down

0 comments on commit f9c4c42

Please sign in to comment.