mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Typoz uhu
This commit is contained in:
parent
32d49d9bbf
commit
dea8dc5618
2 changed files with 3 additions and 3 deletions
|
@ -282,8 +282,8 @@ summary = '\n'.join(make_summary())
|
|||
print(render_for_terminal(summary))
|
||||
|
||||
if os.path.exists("/usr/bin/wkhtmltoimage"):
|
||||
export_as_image(summary, test_context + "/summary.png")
|
||||
if os.path.exists("/usr/bin/optipnge"):
|
||||
export_as_image(summary, f"{test_context}/summary.png")
|
||||
if os.path.exists("/usr/bin/optipng"):
|
||||
os.system(f"/usr/bin/optipng --quiet '{test_context}/summary.png'")
|
||||
else:
|
||||
print("(Protip™ for CI admin: you should 'apt install wkhtmltopdf optipng --no-install-recommends' to enable result summary export to .png)")
|
||||
|
|
|
@ -296,7 +296,7 @@ run_all_tests() {
|
|||
log_title "Tests summary"
|
||||
|
||||
python3 lib/analyze_test_results.py $TEST_CONTEXT 2>./results.json
|
||||
[[ -e "$TEST_CONTEXT/summary.jpg" ]] && cp "$TEST_CONTEXT/summary.jpg" ./summary.jpg || rm -f summary.jpg
|
||||
[[ -e "$TEST_CONTEXT/summary.png" ]] && cp "$TEST_CONTEXT/summary.png" ./summary.png || rm -f summary.png
|
||||
|
||||
# Restore the started time for the timer
|
||||
starttime=$complete_start_timer
|
||||
|
|
Loading…
Add table
Reference in a new issue