From b02996e15d530dcedee6f8472e51d0da5fe51fa7 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Tue, 30 Sep 2025 16:35:52 +0200 Subject: [PATCH] Automatically skip tty tests if not on tty See GH-19975 --- run-tests.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run-tests.php b/run-tests.php index d51ab99a205a3..0c384ec3d6f2a 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;