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

test_urls: Skip lavaphabbridge.apertis.org since it's slow


There's little value in testing the links to the test results for
each release note page and since they are quite slow to render let's
skip them.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent ba95764f
No related branches found
No related tags found
1 merge request!279URL checker tweaks
......@@ -11,7 +11,12 @@ import sys
import traceback
from urllib.parse import urlparse
import urllib3
import fnmatch
EXCLUDE = [
"*://lavaphabbridge.apertis.org", #
"*://lavaphabbridge.apertis.org/*", # it's slooooooow
]
def get_link(url):
link = url.group("link")
......@@ -24,6 +29,10 @@ def get_link(url):
url = url._replace(fragment="")
link = url.geturl()
for exclude in EXCLUDE:
if fnmatch.fnmatch(link, exclude):
return
if not link in urls:
urls.append(link)
......
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