[Lldb-commits] [PATCH] Fix output of do-gtest.py
Tamas Berghammer
tberghammer at google.com
Mon Jan 19 06:24:04 PST 2015
Hi tfiala,
Print out the full output of gtest (previously it was ended an the firs new line).
http://reviews.llvm.org/D7054
Files:
gtest/do-gtest.py
Index: gtest/do-gtest.py
===================================================================
--- gtest/do-gtest.py
+++ gtest/do-gtest.py
@@ -63,8 +63,7 @@
return (new_line, remaining_count)
else:
# Time to write it out.
- if len(new_line) > 0:
- print(new_line, file=file)
+ print(new_line, file=file)
return ("", 0)
def call_make(makefile_dir, extra_args=None, stdout=sys.stdout, stderr=sys.stderr):
@@ -98,17 +97,17 @@
# Drain stdout.
while True:
- line = proc.stdout.readline().rstrip()
+ line = proc.stdout.readline()
if line and len(line) > 0:
- stdout_data = line_combine_printer(stdout, stdout_data, filter_run_line(sub_expr, line))
+ stdout_data = line_combine_printer(stdout, stdout_data, filter_run_line(sub_expr, line.rstrip()))
else:
break
# Drain stderr.
while True:
- line = proc.stderr.readline().rstrip()
+ line = proc.stderr.readline()
if line and len(line) > 0:
- stderr_data = line_combine_printer(stderr, stderr_data, filter_run_line(sub_expr, line))
+ stderr_data = line_combine_printer(stderr, stderr_data, filter_run_line(sub_expr, line.rstrip()))
else:
break
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7054.18387.patch
Type: text/x-patch
Size: 1475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150119/e3fa7afa/attachment.bin>
More information about the lldb-commits
mailing list