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:
Nicolas B. Pierron 2024-05-17 15:16:48 +00:00
parent f129e0b5f4
commit 199e90802a

View file

@ -592,15 +592,19 @@ def print_automation_format(ok, res, slog):
return
print("INFO exit-status : {}".format(res.rc))
print("INFO timed-out : {}".format(res.timed_out))
for line in res.out.splitlines():
print("INFO stdout > " + line.strip())
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():
# See Bug 1868693
if line.startswith("WARNING") and "unused DT entry" in line:
warnings.append(line)
else:
print("INFO stderr 2> " + line.strip())
continue
print("INFO stderr 2> " + line.strip())
for line in warnings:
print("INFO (warn-stderr) 2> " + line.strip())