From 2abe6389c1f32e941895a2286ab131cfa70dc78c Mon Sep 17 00:00:00 2001 From: "ajschult%verizon.net" Date: Tue, 12 Feb 2008 04:30:18 +0000 Subject: [PATCH] Bug 416775: runtests.py prints lots of newlines after app exits, r=Waldo git-svn-id: svn://10.0.0.236/trunk@245450 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/testing/mochitest/runtests.py.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/testing/mochitest/runtests.py.in b/mozilla/testing/mochitest/runtests.py.in index 37d5c7e3c3c..ccffb7f0850 100644 --- a/mozilla/testing/mochitest/runtests.py.in +++ b/mozilla/testing/mochitest/runtests.py.in @@ -326,11 +326,15 @@ class Process: stdout = sys.stdout out = p.fromchild while p.poll() == -1: - print >> stdout, out.readline().rstrip() + line = out.readline().rstrip() + if len(line) > 0: + print >> stdout, line # read in the last lines that happened between the last -1 poll and the # process finishing for line in out: - print >> stdout, line.rstrip() + line = line.rstrip() + if len(line) > 0: + print >> stdout, line return p.poll()