Skip to content
Snippets Groups Projects
Commit 3357d560 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

test_urls: Summarize the broken URLs at the end


Spotting the `FAIL` entry in literally thousands of entries is quite
inconvenient, so list the broken URLs again before exiting.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 0284ba94
No related branches found
No related tags found
1 merge request!279URL checker tweaks
Pipeline #265991 passed with warnings
......@@ -109,9 +109,8 @@ for url in urls:
broken.append(url)
print(url, "OK" if status else "FAIL", f"{end - start:0.4f}s")
print(f"Found {len(broken)} broken URLs in {len(urls)} tested")
print(f"Found {len(broken)} broken URLs in {len(urls)} tested:")
for b in broken:
print(" ", b)
if broken:
sys.exit(1)
sys.exit(0)
sys.exit(1 if broken else 0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment