forked from mirrors/gecko-dev
Bug 1868693 chapter 2 - Move warnings out of stdout, to help sheriffs r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D210805
This commit is contained in:
parent
f129e0b5f4
commit
199e90802a
1 changed files with 8 additions and 4 deletions
|
|
@ -592,15 +592,19 @@ def print_automation_format(ok, res, slog):
|
||||||
return
|
return
|
||||||
print("INFO exit-status : {}".format(res.rc))
|
print("INFO exit-status : {}".format(res.rc))
|
||||||
print("INFO timed-out : {}".format(res.timed_out))
|
print("INFO timed-out : {}".format(res.timed_out))
|
||||||
for line in res.out.splitlines():
|
|
||||||
print("INFO stdout > " + line.strip())
|
|
||||||
warnings = []
|
warnings = []
|
||||||
|
for line in res.out.splitlines():
|
||||||
|
# See Bug 1868693
|
||||||
|
if line.startswith("WARNING") and "unused DT entry" in line:
|
||||||
|
warnings.append(line)
|
||||||
|
continue
|
||||||
|
print("INFO stdout > " + line.strip())
|
||||||
for line in res.err.splitlines():
|
for line in res.err.splitlines():
|
||||||
# See Bug 1868693
|
# See Bug 1868693
|
||||||
if line.startswith("WARNING") and "unused DT entry" in line:
|
if line.startswith("WARNING") and "unused DT entry" in line:
|
||||||
warnings.append(line)
|
warnings.append(line)
|
||||||
else:
|
continue
|
||||||
print("INFO stderr 2> " + line.strip())
|
print("INFO stderr 2> " + line.strip())
|
||||||
for line in warnings:
|
for line in warnings:
|
||||||
print("INFO (warn-stderr) 2> " + line.strip())
|
print("INFO (warn-stderr) 2> " + line.strip())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue