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