Skip to content

Commit a387920

Browse files
committed
have parallel test runner respect NO_INTERACTION
1 parent 0c8454c commit a387920

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

run-tests.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ function main()
474474
break;
475475
case 'q':
476476
putenv('NO_INTERACTION=1');
477+
$environment['NO_INTERACTION'] = 1;
477478
break;
478479
//case 'r'
479480
case 's':
@@ -1588,9 +1589,12 @@ function run_all_tests_parallel($test_files, $env, $redir_tested) {
15881589
$PHP_FAILED_TESTS[$category] = array_merge($PHP_FAILED_TESTS[$category], $tests);
15891590
}
15901591
$test_idx++;
1591-
clear_show_test();
1592-
echo $resultText;
1593-
show_test($test_idx, count($workerProcs) . "/$workers concurrent test workers running");
1592+
1593+
if (!isset($env['NO_INTERACTION']) || !$env['NO_INTERACTION']) {
1594+
clear_show_test();
1595+
echo $resultText;
1596+
show_test($test_idx, count($workerProcs) . "/$workers concurrent test workers running");
1597+
}
15941598

15951599
if (!is_array($name) && $result != 'REDIR') {
15961600
$test_results[$index] = $result;

0 commit comments

Comments
 (0)