| Summary: | Change dumpAsText to strip trailing spaces | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Darin Adler <darin> | ||||||||||||||||||||||
| Component: | Tools / Tests | Assignee: | Darin Adler <darin> | ||||||||||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||||||||||
| Severity: | Normal | CC: | ews-watchlist, glenn, jbedard, mkwst, sam, simon.fraser, webkit-bug-importer, zalan | ||||||||||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=217041 | ||||||||||||||||||||||||
| Bug Depends on: | |||||||||||||||||||||||||
| Bug Blocks: | 217016, 217018, 217019, 217020, 217022, 217024, 217027, 217029, 217030, 217035, 217036, 217037, 217038, 217039, 217040 | ||||||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||||||
|
Description
Darin Adler
2020-09-24 14:36:33 PDT
I think I’ll do this in 4 steps: 1) Make run-webkit-tests ignore trailing space differences in expected.txt files. 2) Change DumpRenderTree and WebKitTestRunner to not dump any trailing spaces. 3) Do a global replace across all the expected.txt files to remove existing trailing spaces (probably won’t post a patch for review for this step). 4) Remove the code from (1), no need to ignore trailing space differences any more. Anyone have a better idea? Here’s the command line I will use for step 3:
find . -name '*-expected.txt' | xargs perl -i -pe 's/ +$//g'
Created attachment 409716 [details]
Patch
Comment on attachment 409716 [details]
Patch
Thanks for doing this!
Comment on attachment 409716 [details]
Patch
I have a slightly better version of this patch that I will land, but only after seeing no failures on EWS.
Created attachment 409723 [details]
Patch
Created attachment 409734 [details]
Patch
Running into trouble with other things that write into the file like these: CONSOLE MESSSAGE: PROMPT: Won’t be hard to fix. Created attachment 409753 [details]
Patch
Created attachment 409765 [details]
Patch
Created attachment 409779 [details]
Patch
Created attachment 409788 [details]
Patch
Created attachment 409794 [details]
Patch
Created attachment 409795 [details]
Patch
(In reply to Darin Adler from comment #2) > Here’s the command line I will use for step 3: > > find . -name '*-expected.txt' | xargs perl -i -pe 's/ +$//g' Fancier version that skips web archive files: find . -name '*-expected.txt' | xargs awk '/^CONSOLE MESSAGE:/ { next }; /^<\?xml/ { nextfile }; { print FILENAME; nextfile }' | xargs perl -i -pe 's/ +$//g' Created attachment 409796 [details]
Patch
Committed r267640: <https://trac.webkit.org/changeset/267640> |