Typoz uhu

This commit is contained in:
Alexandre Aubin 2021-09-23 18:45:46 +02:00
parent 32d49d9bbf
commit dea8dc5618
2 changed files with 3 additions and 3 deletions

View file

@ -282,8 +282,8 @@ 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.png") export_as_image(summary, f"{test_context}/summary.png")
if os.path.exists("/usr/bin/optipnge"): if os.path.exists("/usr/bin/optipng"):
os.system(f"/usr/bin/optipng --quiet '{test_context}/summary.png'") os.system(f"/usr/bin/optipng --quiet '{test_context}/summary.png'")
else: else:
print("(Protip™ for CI admin: you should 'apt install wkhtmltopdf optipng --no-install-recommends' to enable result summary export to .png)") print("(Protip™ for CI admin: you should 'apt install wkhtmltopdf optipng --no-install-recommends' to enable result summary export to .png)")

View file

@ -296,7 +296,7 @@ run_all_tests() {
log_title "Tests summary" log_title "Tests summary"
python3 lib/analyze_test_results.py $TEST_CONTEXT 2>./results.json 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 # Restore the started time for the timer
starttime=$complete_start_timer starttime=$complete_start_timer