Re: cvs: qaweb / buildtest-process.php
| From: | Xavier Spriet | Date: | Tue, 17 Dec 2002 19:05:45 +0000 |
| Subject: | Re: cvs: qaweb / buildtest-process.php | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-7322@lists.php.net to get a copy of this message | ||
http://qa.php.net/running-tests.php
If there are "FAIL"ed tests, the script asks to send the logs to the PHP
QA mailinglist. Please answer "y" to this question so that we can
efficiently process the results.
How will we get the 100% passed test results if make test isn't even
supposed to send the reports in that case though ?
On Tue, 2002-12-17 at 13:58, Derick Rethans wrote:
> derick Tue Dec 17 13:58:00 2002 EDT
>
> Modified files:
> /qaweb buildtest-process.php
> Log:
> - Report failed and successful tests in subject
>
>
> Index: qaweb/buildtest-process.php
> diff -u qaweb/buildtest-process.php:1.6 qaweb/buildtest-process.php:1.7
> --- qaweb/buildtest-process.php:1.6 Mon Dec 16 17:50:30 2002
> +++ qaweb/buildtest-process.php Tue Dec 17 13:58:00 2002
> @@ -3,7 +3,21 @@
> if (strlen($_POST['php_test_data']) > 90000) {
> die("can't handle input that large.");
> }
> - mail ("php-qa@lists.php.net", "Test results",
> base64_decode(urldecode($_POST['php_test_data'])), "From: noreply@php.net");
> + if (isset($_GET['status'])) {
> + switch($_GET['status']) {
> + case 'failed':
> + $status = "failed";
> + break;
> + case 'success':
> + $status = "success";
> + break;
> + default:
> + $status = "unknown";
> + }
> + } else {
> + $status = "unknown";
> + }
> + mail ("php-qa@lists.php.net", "Test results [$status]",
> base64_decode(urldecode($_POST['php_test_data'])), "From: noreply@php.net");
> }
> ?>
> -$Revision: 1.6 $
> +$Revision: 1.7 $
--
Xavier Spriet <xavier@wuug.org>