Browse Source
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
Automatically skip tty tests if not on tty
pull/20027/merge
Ilija Tovilo
7 days ago
No known key found for this signature in database
GPG Key ID: 115CEA7A713E12E9
1 changed files with
6 additions and
0 deletions
-
run-tests.php
|
|
@ -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; |
|
|
|