mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 416775: runtests.py prints lots of newlines after app exits, r=Waldo
This commit is contained in:
parent
5ccb25d679
commit
b7946e60ca
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user