Bug 314178
| Summary: | Make run-api-tests default to --child-processes=1 when only specific tests are named | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | zak ridouh <zakr> |
| Component: | Tools / Tests | Assignee: | zak ridouh <zakr> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
zak ridouh
Running `run-api-tests --ios-simulator Foo.Bar` currently boots one simulator
per CPU, which is extremely slow and frequently times out before the test
runs. The standard workaround is `--child-processes=1`, but it's easy to
forget.
When every positional argument matches `\S+\..+` (i.e., the user named
specific tests, not a whole binary or suite), default --child-processes to 1.
Users can still override with an explicit --child-processes=N. We intentionally
do not count tests, because counting requires booting a simulator.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/176339262>
zak ridouh
Pull request: https://github.com/WebKit/WebKit/pull/64351
EWS
Committed 312716@main (722055b88704): <https://commits.webkit.org/312716@main>
Reviewed commits have been landed. Closing PR #64351 and removing active labels.