From d9c054d0011f87811638d09f26e5711ee709f050 Mon Sep 17 00:00:00 2001 From: Chaoren Lin Date: Tue, 3 Mar 2015 19:10:39 +0000 Subject: [PATCH] Fix TestQuoting on remote targets. 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lldb/test/settings/quoting/TestQuoting.py b/lldb/test/settings/quoting/TestQuoting.py index 8a3c47b..1f8f47c 100644 --- a/lldb/test/settings/quoting/TestQuoting.py +++ b/lldb/test/settings/quoting/TestQuoting.py @@ -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() -- 2.7.4