| Summary: | Move tests to pyfakefs from FileSystemMock | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Sneddon [:gsnedders] <gsnedders> | ||||
| Component: | Tools / Tests | Assignee: | Sam Sneddon [:gsnedders] <gsnedders> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | ap, ews-watchlist, glenn, jbedard, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=236043 | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 220421 | ||||||
| Attachments: |
|
||||||
|
Description
Sam Sneddon [:gsnedders]
2022-01-19 11:18:54 PST
Created attachment 450272 [details]
Patch
Comment on attachment 450272 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450272&action=review > Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder_legacy_unittest.py:57 > + self.setUpPyfakefs() I agree that using pyfakefs through the TestCaseMixin is the right thing to do for this class. I'm curious if you looked at the Patcher and considered it at all? Or was the Mixin just the natural choice because this particular set of tests was already using setup. Comment on attachment 450272 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450272&action=review >> Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder_legacy_unittest.py:57 >> + self.setUpPyfakefs() > > I agree that using pyfakefs through the TestCaseMixin is the right thing to do for this class. I'm curious if you looked at the Patcher and considered it at all? Or was the Mixin just the natural choice because this particular set of tests was already using setup. Using Patcher requires reimplementing a lot of the TestCaseMixin machinery for very little gain. Committed r288878 (246630@main): <https://commits.webkit.org/246630@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 450272 [details]. |