diff options
author | Sander Roobol <sander@php.net> | 2002-11-15 10:39:19 +0000 |
---|---|---|
committer | Sander Roobol <sander@php.net> | 2002-11-15 10:39:19 +0000 |
commit | 40e65a119dd08c4d2851581aca1960e121214deb (patch) | |
tree | ed1c444ea55e3dc0582a768cffad99c74732eae5 | |
parent | e58c52ae7ea8028c093ea674bab1a6c6bd2ee238 (diff) | |
download | php-git-40e65a119dd08c4d2851581aca1960e121214deb.tar.gz |
MFH
-rwxr-xr-x | run-tests.php | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/run-tests.php b/run-tests.php index c78704e102..87d2c2add4 100755 --- a/run-tests.php +++ b/run-tests.php @@ -335,7 +335,17 @@ if ($sum_results['FAILED'] && !getenv('NO_INTERACTION')) { $failed_tests_data = ''; $sep = "\n" . str_repeat('=', 80) . "\n"; - $failed_tests_data .= "OS:\n". PHP_OS. "\n"; + $failed_tests_data .= $failed_test_summary . "\n"; + + foreach ($GLOBALS['__PHP_FAILED_TESTS__'] as $test_info) { + $failed_tests_data .= $sep . $test_info['name']; + $failed_tests_data .= $sep . file_get_contents(realpath($test_info['output'])); + $failed_tests_data .= $sep . file_get_contents(realpath($test_info['diff'])); + $failed_tests_data .= $sep . "\n\n"; + } + + $failed_tests_data .= "\n" . $sep . 'BUILD ENVIRONMENT' . $sep; + $failed_tests_data .= "OS:\n". PHP_OS. "\n\n"; $automake = $autoconf = $libtool = $compiler = 'N/A'; if (substr(PHP_OS, 0, 3) != "WIN") { $automake = shell_exec('automake --version'); @@ -359,15 +369,6 @@ if ($sum_results['FAILED'] && !getenv('NO_INTERACTION')) { $failed_tests_data .= "Bison:\n". @shell_exec('bison --version'). "\n"; $failed_tests_data .= "\n\n"; - $failed_tests_data .= $failed_test_summary . "\n"; - - foreach ($GLOBALS['__PHP_FAILED_TESTS__'] as $test_info) { - $failed_tests_data .= $sep . $test_info['name']; - $failed_tests_data .= $sep . file_get_contents(realpath($test_info['output'])); - $failed_tests_data .= $sep . file_get_contents(realpath($test_info['diff'])); - $failed_tests_data .= $sep . "\n\n"; - } - $failed_tests_data .= $sep . "PHPINFO" . $sep; $failed_tests_data .= shell_exec($php.' -dhtml_errors=0 -i'); |