Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.01 KB | None | 0 0
  1.  
  2. --- run-tests.php       2011-02-27 18:55:39.000000000 +0100
  3. +++ new/run-tests.php 2011-06-30 00:33:37.005786730 +0200
  4. @@ -319,7 +319,7 @@
  5.                $PHP_FAILED_TESTS, $CUR_DIR, $php, $output_file, $compression;
  6.  
  7.         /* We got failed Tests, offer the user to send an e-mail to QA team, unless NO_INTERACTION is set */
  8. -       if (!getenv('NO_INTERACTION')) {
  9. +       if (!getenv('SEND_RESULTS') && !getenv('NO_INTERACTION')) {
  10.                 $fp = fopen("php://stdin", "r+");
  11.                 if ($sum_results['FAILED'] || $sum_results['BORKED'] || $sum_results['WARNED'] || $sum_results['LEAKED'] || $sum_results['XFAILED']) {
  12.                         echo "\nYou may have found a problem in PHP.";
  13. @@ -333,8 +333,11 @@
  14.                 $user_input = fgets($fp, 10);
  15.                 $just_save_results = (strtolower($user_input[0]) == 's');
  16.         }
  17. -
  18. -       if ($just_save_results || !getenv('NO_INTERACTION')) {
  19. +       if (getenv('SEND_RESULTS')) {
  20. +            $fp = fopen("php://stdin", "r+");
  21. +            $user_input = 'y';
  22. +        }
  23. +       if ($just_save_results || !getenv('NO_INTERACTION') || getenv('SEND_RESULTS')) {
  24.                 if ($just_save_results || strlen(trim($user_input)) == 0 || strtolower($user_input[0]) == 'y') {
  25.                         /*
  26.                          * Collect information about the host system for our report
  27. @@ -346,6 +349,11 @@
  28.                                 $user_input = 's';
  29.                         }
  30.  
  31. +                       if (getenv('SEND_RESULTS')) {
  32. +                               // any specific ?
  33. +                               // @todo
  34. +                       } else
  35. +
  36.                         /* Ask the user to provide an email address, so that QA team can contact the user */
  37.                         if (!strncasecmp($user_input, 'y', 1) || strlen(trim($user_input)) == 0) {
  38.                                 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