Bug 245938 - run-webkit-tests cannot find tests when passed a path starting with ./
Summary: run-webkit-tests cannot find tests when passed a path starting with ./
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-01 20:31 PDT by Ryan Reno
Modified: 2022-10-02 16:03 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Reno 2022-10-01 20:31:27 PDT
run-webkit-tests --no-build ./LayoutTests/imported/w3c/web-platform-tests should run the entire WPT suite. Instead it finds 0 tests.

    Found 0 tests; running 0, skipping 0.
    All tests skipped.

run-webkit-tests --no-build LayoutTests/imported/w3c/web-platform-tests/ does find and run all of WPT that's imported in our tree. 

    Found 32130 tests; running 26816, skipping 5314.


It seems like the leading ./ is confusing the code that searches for tests. Trailing / work ok when trying to run all tests in a directory.
Comment 1 Radar WebKit Bug Importer 2022-10-01 20:31:59 PDT
<rdar://problem/100663551>
Comment 2 Alexey Proskuryakov 2022-10-02 16:03:34 PDT
I think that this is basically by design - it takes either a LayoutTests relative path or WebKit relative path, but not cwd relative.