mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-17 00:38:59 +00:00
Don't [try] to run non-tests
Currently, we treat every .html file in tests/wpt as-if it's a test. That
isn't always the case. wpt has a manifest tool to generate a manifest (in
JSON) of the tests, we should probably use that (but it's quite large).
This PR filters out two groups. First, everything in resources/ appears to
be things to _run_ the tests, not actual tests.
Second, any file without a "testharness.js" doesn't appear to be a test
either. Note that WPT's own manifest generator looks at this:
43a0615361/tools/manifest/sourcefile.py (L676)
(which is used later in the file to determine the type of file).
This commit is contained in:
@@ -148,6 +148,10 @@ pub fn main() !void {
|
||||
}
|
||||
failures += 1;
|
||||
continue;
|
||||
} orelse {
|
||||
// This test should _not_ have been run.
|
||||
run -= 1;
|
||||
continue;
|
||||
};
|
||||
|
||||
const suite = try Suite.init(alloc, tc, true, res);
|
||||
|
||||
Reference in New Issue
Block a user