Browse Source

Automatically skip tty tests if not on tty

See GH-19975
Closes GH-20013
pull/20057/head
Ilija Tovilo 2 months ago
parent
commit
831597748b
No known key found for this signature in database GPG Key ID: 115CEA7A713E12E9
  1. 6
      run-tests.php

6
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;

Loading…
Cancel
Save