From 5cea67171ba5df2e601b04383453977552862826 Mon Sep 17 00:00:00 2001 From: o9000 Date: Thu, 21 Dec 2017 12:27:57 +0100 Subject: [PATCH] Do not report 3rd party library warnings --- test/regression.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/regression.py b/test/regression.py index 22d4308..dd1a4b9 100755 --- a/test/regression.py +++ b/test/regression.py @@ -296,13 +296,13 @@ def compile_remotely_and_report(host): print("Status: Failed!", error) print("Output:") print("```\n" + out.strip() + "\n```") - if "warning:" in out: + warnings = [ line for line in out.split("\n") if "warning:" in line and ".so." not in line.split(":", 1)[0] ] + if warnings: print("Status: Succeeded with warnings!", warning) print("Warnings:") print("```", end="") - for line in out.split("\n"): - if "warning:" in line: - print(line, end="") + for line in warnings: + print(line, end="") print("```", end="") else: print("Status: Succeeded in %.1f seconds" % (duration,), ok)