headless-browser: Stop considering support files from WPT as tests

This commit is contained in:
Lucas CHOLLET 2024-12-14 18:08:50 -05:00
parent d6fb1b61ac
commit 8e34efd4b5

View file

@ -412,7 +412,9 @@ ErrorOr<void> run_tests(Core::AnonymousBuffer const& theme, Web::DevicePixelSize
#endif #endif
tests.remove_all_matching([&](auto const& test) { 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) { if (app.test_dry_run) {