mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
headless-browser: Stop considering support files from WPT as tests
This commit is contained in:
parent
325d1bb853
commit
8a0c63f168
Notes:
github-actions[bot]
2024-12-19 09:55:55 +00:00
Author: https://github.com/LucasChollet
Commit: 8a0c63f168
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2929
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue