Do not report 3rd party library warnings
This commit is contained in:
parent
328a35f949
commit
5cea67171b
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue