Browse Source
Automatically skip tty tests if not on tty
See GH-19975
Closes GH-20013
pull/20057/head
Ilija Tovilo
2 months 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
|
|
|
@ -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; |
|
|
|
|