summaryrefslogtreecommitdiffstats
path: root/tools/lint/perfdocs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /tools/lint/perfdocs
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/lint/perfdocs')
-rw-r--r--tools/lint/perfdocs/framework_gatherers.py6
-rw-r--r--tools/lint/perfdocs/verifier.py4
2 files changed, 6 insertions, 4 deletions
diff --git a/tools/lint/perfdocs/framework_gatherers.py b/tools/lint/perfdocs/framework_gatherers.py
index 4c2ca585ad..75a6371731 100644
--- a/tools/lint/perfdocs/framework_gatherers.py
+++ b/tools/lint/perfdocs/framework_gatherers.py
@@ -258,6 +258,8 @@ class RaptorGatherer(FrameworkGatherer):
result += f" {idx+1}. **{description['name']}**\n\n"
if "owner" in description.keys():
result += f" **Owner**: {description['owner']}\n\n"
+ if test_description:
+ result += f" **Description**: {test_description}\n\n"
for key in sorted(description.keys()):
if key in ["owner", "name", "manifest", "metrics"]:
@@ -265,8 +267,8 @@ class RaptorGatherer(FrameworkGatherer):
sub_title = key.replace("_", " ")
if key == "test_url":
if "<" in description[key] or ">" in description[key]:
- description[key] = description[key].replace("<", "\<")
- description[key] = description[key].replace(">", "\>")
+ description[key] = description[key].replace("<", r"\<")
+ description[key] = description[key].replace(">", r"\>")
result += f" * **{sub_title}**: `<{description[key]}>`__\n"
elif key == "secondary_url":
result += f" * **{sub_title}**: `<{description[key]}>`__\n"
diff --git a/tools/lint/perfdocs/verifier.py b/tools/lint/perfdocs/verifier.py
index 6603b9acce..0f39e3a047 100644
--- a/tools/lint/perfdocs/verifier.py
+++ b/tools/lint/perfdocs/verifier.py
@@ -101,7 +101,7 @@ class Verifier(object):
):
"""Determine if a target name (from a YAML) matches with a test."""
tb = os.path.basename(target_test_name)
- tb = re.sub("\..*", "", tb)
+ tb = re.sub(r"\..*", "", tb)
if test_name == tb:
# Found an exact match for the test_name
return True
@@ -169,7 +169,7 @@ class Verifier(object):
for test_name, test_info in test_list.items():
manifest_path = test_info.get("path", test_info.get("manifest", ""))
tb = os.path.basename(manifest_path)
- tb = re.sub("\..*", "", tb)
+ tb = re.sub(r"\..*", "", tb)
if (
stests.get(tb, None) is not None
or stests.get(test_name, None) is not None