mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-19 22:18:13 +00:00
fix(tests): url-safe name for hyperlinks (for when there's a backslash)
This commit is contained in:
parent
e5ed9d3df4
commit
5fa1a33a1d
@ -1,6 +1,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import shutil
|
import shutil
|
||||||
|
import urllib.parse
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Iterable
|
from typing import Iterable
|
||||||
|
|
||||||
@ -36,7 +37,8 @@ def report_links(
|
|||||||
th("Link to report")
|
th("Link to report")
|
||||||
for test in sorted(tests):
|
for test in sorted(tests):
|
||||||
with tr(data_actual_hash=actual_hashes.get(test.stem, "")):
|
with tr(data_actual_hash=actual_hashes.get(test.stem, "")):
|
||||||
path = test.relative_to(reports_path)
|
urlsafe = urllib.parse.quote(test.name)
|
||||||
|
path = test.with_name(urlsafe).relative_to(reports_path)
|
||||||
td(a(test.name, href=path))
|
td(a(test.name, href=path))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user