From 8a0c63f168938797fd910a0b08cc6e37462b5ca9 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Sat, 14 Dec 2024 18:08:50 -0500 Subject: [PATCH] headless-browser: Stop considering support files from WPT as tests --- UI/Headless/Test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/Headless/Test.cpp b/UI/Headless/Test.cpp index 9bf4c35cea9..59c6e527c59 100644 --- a/UI/Headless/Test.cpp +++ b/UI/Headless/Test.cpp @@ -412,7 +412,9 @@ ErrorOr run_tests(Core::AnonymousBuffer const& theme, Web::DevicePixelSize #endif tests.remove_all_matching([&](auto const& test) { - return !test.input_path.matches(test_glob, CaseSensitivity::CaseSensitive); + bool is_support_file = test.input_path.matches("*/wpt-import/*/support/*"sv); + bool match_glob = test.input_path.matches(test_glob, CaseSensitivity::CaseSensitive); + return is_support_file || !match_glob; }); if (app.test_dry_run) {