Bug 261488

Summary: WPT lint tool fails if run from outside the repo
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: Tools / TestsAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matt Woodrow 2023-09-12 18:38:27 PDT
Running export-w3c-tests fails for me with a bunch of lint errors of the form 'file matches an ignore filter in .gitignore'.

It seems that for some reason it ends up passing our new test files to `git check-ignore --stdin' such that the contents of the test file is interpreted as a list of files to check against the ignore list.

Using the web-platform-tests directory as the CWD fixes this issue.
Comment 1 Radar WebKit Bug Importer 2023-09-12 18:38:37 PDT
<rdar://problem/115400766>
Comment 2 Matt Woodrow 2023-09-12 18:39:43 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17718
Comment 3 EWS 2023-09-13 14:10:43 PDT
Committed 267967@main (97f8f5512116): <https://commits.webkit.org/267967@main>

Reviewed commits have been landed. Closing PR #17718 and removing active labels.