diff --git a/run-tests.php b/run-tests.php index d51ab99a205a..0c384ec3d6f2 100755 --- a/run-tests.php +++ b/run-tests.php @@ -651,6 +651,10 @@ function main(): void } } + if (!stream_isatty(STDIN) || !stream_isatty(STDOUT) || !stream_isatty(STDERR)) { + $environment['SKIP_IO_CAPTURE_TESTS'] = '1'; + } + if ($selected_tests && count($test_files) === 0) { echo "No tests found.\n"; return;