[Lldb-commits] [lldb] r236560 - Update gdbremote_testcase to accomodate new adb:// scheme.

Chaoren Lin chaorenl at google.com
Tue May 5 18:28:04 PDT 2015


Author: chaoren
Date: Tue May  5 20:28:04 2015
New Revision: 236560

URL: http://llvm.org/viewvc/llvm-project?rev=236560&view=rev
Log:
Update gdbremote_testcase to accomodate new adb:// scheme.

Reviewers: chying, ovyalov

Reviewed By: chying, ovyalov

Subscribers: lldb-commits

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

Modified:
    lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py

Modified: lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py?rev=236560&r1=236559&r2=236560&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py (original)
+++ lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py Tue May  5 20:28:04 2015
@@ -61,7 +61,8 @@ class GdbRemoteTestCaseBase(TestBase):
         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"
 





More information about the lldb-commits mailing list