This commit is contained in:
Alexandre Aubin 2021-09-22 23:25:06 +02:00
parent 9416d8833b
commit da894f6f0f

View file

@ -282,9 +282,11 @@ summary = '\n'.join(make_summary())
print(render_for_terminal(summary))
if os.path.exists("/usr/bin/wkhtmltoimage"):
export_as_image(summary, test_context + "/summary.jpg")
export_as_image(summary, test_context + "/summary.png")
if os.path.exists("/usr/bin/optipnge"):
os.system(f"/usr/bin/optipng {test_context}/summary.png")
else:
print("(Protip™ for CI admin: you should 'apt install wkhtmltopdf --no-install-recommends' to enable result summary export to .jpg)")
print("(Protip™ for CI admin: you should 'apt install wkhtmltopdf optipng --no-install-recommends' to enable result summary export to .png)")
summary = {
"app": open(test_context + "/app_id").read().strip(),