Fix TestQuoting on remote targets.
authorChaoren Lin <chaorenl@google.com>
Tue, 3 Mar 2015 19:10:39 +0000 (19:10 +0000)
committerChaoren Lin <chaorenl@google.com>
Tue, 3 Mar 2015 19:10:39 +0000 (19:10 +0000)
Summary: Needed to transfer stdout.txt to host before reading.

Reviewers: ovyalov, clayborg

Subscribers: tberghammer, lldb-commits

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

llvm-svn: 231101

lldb/test/settings/quoting/TestQuoting.py

index 8a3c47b..1f8f47c 100644 (file)
@@ -68,6 +68,11 @@ class SettingsCommandTestCase(TestBase):
 
         self.runCmd("process launch -o stdout.txt -- " + args_in)
 
+        if lldb.remote_platform:
+            src_file_spec = lldb.SBFileSpec('stdout.txt', False)
+            dst_file_spec = lldb.SBFileSpec('stdout.txt', True)
+            lldb.remote_platform.Get(src_file_spec, dst_file_spec);
+
         with open('stdout.txt', 'r') as f:
             output = f.read()