Fix typo. platfrom -> platform
authorChaoren Lin <chaorenl@google.com>
Tue, 5 May 2015 20:34:36 +0000 (20:34 +0000)
committerChaoren Lin <chaorenl@google.com>
Tue, 5 May 2015 20:34:36 +0000 (20:34 +0000)
llvm-svn: 236543

lldb/test/dotest.py
lldb/test/tools/lldb-server/gdbremote_testcase.py

index 227714c..99ecac7 100755 (executable)
@@ -1336,7 +1336,7 @@ if lldb_platform_name:
     if lldb_platform_url:
         # We must connect to a remote platform if a LLDB platform URL was specified
         print "Connecting to remote platform '%s' at '%s'..." % (lldb_platform_name, lldb_platform_url)
-        lldb.platfrom_url = lldb_platform_url
+        lldb.platform_url = lldb_platform_url
         platform_connect_options = lldb.SBPlatformConnectOptions(lldb_platform_url)
         err = lldb.remote_platform.ConnectRemote(platform_connect_options)
         if err.Success():
@@ -1345,7 +1345,7 @@ if lldb_platform_name:
             print "error: failed to connect to remote platform using URL '%s': %s" % (lldb_platform_url, err)
             exitTestSuite(1)
     else:
-        lldb.platfrom_url = None
+        lldb.platform_url = None
 
     if lldb_platform_working_dir:
         print "Setting remote platform working directory to '%s'..." % (lldb_platform_working_dir)
@@ -1356,7 +1356,7 @@ if lldb_platform_name:
 else:
     lldb.remote_platform = None
     lldb.remote_platform_working_dir = None
-    lldb.platfrom_url = None
+    lldb.platform_url = None
 
 target_platform = lldb.DBG.GetSelectedPlatform().GetTriple().split('-')[2]
 
index 580e9dc..74c5fb8 100644 (file)
@@ -60,8 +60,8 @@ class GdbRemoteTestCaseBase(TestBase):
         self.named_pipe = None
         self.named_pipe_fd = None
         self.stub_sends_two_stop_notifications_on_kill = False
-        if lldb.platfrom_url:
-            self.stub_hostname = re.match(".*://(.*):[0-9]+", lldb.platfrom_url).group(1)
+        if lldb.platform_url:
+            self.stub_hostname = re.match(".*://(.*):[0-9]+", lldb.platform_url).group(1)
         else:
             self.stub_hostname = "localhost"