com php-src: Don't use parallel testing with -j1: run-tests.php

From: Date: Mon, 25 Mar 2019 13:15:26 +0000
Subject: com php-src: Don't use parallel testing with -j1: run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105326@lists.php.net to get a copy of this message
Commit: 071ffa2e7946a8f4fca856c9984be512d1eadbbc Author: Nikita Popov <nikita.ppv@gmail.com> Mon, 25 Mar 2019 14:15:26 +0100 Parents: 3c61972451f91df9d657ae06db0397f8d65cc4df Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=071ffa2e7946a8f4fca856c9984be512d1eadbbc Log: Don't use parallel testing with -j1 Changed paths: M run-tests.php Diff: diff --git a/run-tests.php b/run-tests.php index fc40ae8..a8dbd81 100755 --- a/run-tests.php +++ b/run-tests.php @@ -388,6 +388,10 @@ NO_PROC_OPEN_ERROR; error("'$workers' is not a valid number of workers, try e.g. -j16 for 16 workers"); } $workers = intval($workers, 10); + // Don't use parallel testing infrastructure if there is only one worker. + if ($workers === 1) { + $workers = null; + } break; case 'r': case 'l':

« previous php.cvs (#105326) next »