mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
png ftw
This commit is contained in:
parent
9416d8833b
commit
da894f6f0f
1 changed files with 4 additions and 2 deletions
|
@ -282,9 +282,11 @@ summary = '\n'.join(make_summary())
|
||||||
print(render_for_terminal(summary))
|
print(render_for_terminal(summary))
|
||||||
|
|
||||||
if os.path.exists("/usr/bin/wkhtmltoimage"):
|
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:
|
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 = {
|
summary = {
|
||||||
"app": open(test_context + "/app_id").read().strip(),
|
"app": open(test_context + "/app_id").read().strip(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue