]> granicus.if.org Git - php/commit
Don't start unnecessary processes with run-tests.php -j
authorTyson Andre <tysonandre775@hotmail.com>
Mon, 20 Jan 2020 22:00:56 +0000 (17:00 -0500)
committerTyson Andre <tysonandre775@hotmail.com>
Wed, 22 Jan 2020 01:05:06 +0000 (20:05 -0500)
commit549f55fc3f1bb6bd8901748d9eb608e22779fb4a
tree01f3e19f3bec7262e8b0fac108f969d510a6ba95
parent85ea04b747a58d32cd75894f8bc96b7878005cd1
Don't start unnecessary processes with run-tests.php -j

If there's only 2 files to test, then only start 2 workers instead of N.

If there's only 1 file, then avoid parallelism entirely.
A separate option such as `--force-parallel` could be added
if this turns out to be something developers would want to do
when debugging test failures.
run-tests.php