Bug 1904288 - Allow to skip some tests in the pdfpaint task r=sparky,perftest-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D221678
This commit is contained in:
Calixte 2024-09-12 19:56:00 +00:00
Родитель 3f6f6497bf
Коммит 07471ed168
3 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -696,7 +696,7 @@ mozilla-pdf.js:
fetch:
type: git
repo: https://github.com/mozilla/pdf.js
revision: d64f334f98d4b7f1c2e09a731a63b68629c946f9
revision: 5b4c2fe1a845169ac2b4f8f6335337c434077637
xmlstarlet-1.6.1:
description: xmlstarlet for Android Performance Tests

Просмотреть файл

@ -58,6 +58,8 @@ def gather_talos_pdf(test_folder, pdf_info, output_dir):
found in the test/test_manifest.json file from the pdf.js repo.
:param Path output_dir: The directory to move/download the PDF to.
"""
if not pdf_info.get("talos", True):
return
pdf_file = pdf_info["file"]
output_pdf_path = pathlib.Path(output_dir, pathlib.Path(pdf_file).name)

Просмотреть файл

@ -230,6 +230,9 @@ def setup_pdfpaint_test(config, test_instance):
pdf_files = set()
for pdf_info in test_manifest:
if not pdf_info.get("talos", True):
# Skip pdfs that are not meant to be tested
continue
if pdf_info.get("password", None) is not None:
# PDFs that require passwords cause timeouts
continue