mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Automatically skip tty tests if not on tty
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user