diff --git a/tests/python/modules/global_report.py b/tests/python/modules/global_report.py
index d750b2ecd4d..80bc758ccba 100755
--- a/tests/python/modules/global_report.py
+++ b/tests/python/modules/global_report.py
@@ -63,12 +63,14 @@ def add(output_dir, category, name, filepath, failed=None):
else:
status = "ok"
+ relpath = os.path.relpath(filepath, output_dir)
+
html = """
⬤
- {name}
+ {name}
""" . format(status=status,
name=name,
- filepath=filepath)
+ relpath=relpath)
dirpath = os.path.join(output_dir, "report", category)
os.makedirs(dirpath, exist_ok=True)