Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- run-tests.php 2011-02-27 18:55:39.000000000 +0100
- +++ new/run-tests.php 2011-06-30 00:33:37.005786730 +0200
- @@ -319,7 +319,7 @@
- $PHP_FAILED_TESTS, $CUR_DIR, $php, $output_file, $compression;
- /* We got failed Tests, offer the user to send an e-mail to QA team, unless NO_INTERACTION is set */
- - if (!getenv('NO_INTERACTION')) {
- + if (!getenv('SEND_RESULTS') && !getenv('NO_INTERACTION')) {
- $fp = fopen("php://stdin", "r+");
- if ($sum_results['FAILED'] || $sum_results['BORKED'] || $sum_results['WARNED'] || $sum_results['LEAKED'] || $sum_results['XFAILED']) {
- echo "\nYou may have found a problem in PHP.";
- @@ -333,8 +333,11 @@
- $user_input = fgets($fp, 10);
- $just_save_results = (strtolower($user_input[0]) == 's');
- }
- -
- - if ($just_save_results || !getenv('NO_INTERACTION')) {
- + if (getenv('SEND_RESULTS')) {
- + $fp = fopen("php://stdin", "r+");
- + $user_input = 'y';
- + }
- + if ($just_save_results || !getenv('NO_INTERACTION') || getenv('SEND_RESULTS')) {
- if ($just_save_results || strlen(trim($user_input)) == 0 || strtolower($user_input[0]) == 'y') {
- /*
- * Collect information about the host system for our report
- @@ -346,6 +349,11 @@
- $user_input = 's';
- }
- + if (getenv('SEND_RESULTS')) {
- + // any specific ?
- + // @todo
- + } else
- +
- /* Ask the user to provide an email address, so that QA team can contact the user */
- if (!strncasecmp($user_input, 'y', 1) || strlen(trim($user_input)) == 0) {
- echo "\nPlease enter your email address.\n(Your address will be mangled so that it will not go out on any\nmailinglist in plain text): ";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement