Do not report 3rd party library warnings

This commit is contained in:
o9000 2017-12-21 12:27:57 +01:00
parent 328a35f949
commit 5cea67171b

View file

@ -296,13 +296,13 @@ def compile_remotely_and_report(host):
print("Status: Failed!", error) print("Status: Failed!", error)
print("Output:") print("Output:")
print("```\n" + out.strip() + "\n```") 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("Status: Succeeded with warnings!", warning)
print("Warnings:") print("Warnings:")
print("```", end="") print("```", end="")
for line in out.split("\n"): for line in warnings:
if "warning:" in line: print(line, end="")
print(line, end="")
print("```", end="") print("```", end="")
else: else:
print("Status: Succeeded in %.1f seconds" % (duration,), ok) print("Status: Succeeded in %.1f seconds" % (duration,), ok)