1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.5'

* PHP-8.5:
  Automatically skip tty tests if not on tty
This commit is contained in:
Ilija Tovilo
2025-10-03 00:47:42 +02:00

View File

@@ -648,6 +648,12 @@ function main(): void
$environment['SKIP_ONLINE_TESTS'] = $online ? '0' : '1';
}
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;