cvs: php-gcov-web /cron tests.php
| From: | Nuno Lopes | Date: | Thu, 09 Aug 2007 13:29:51 +0000 |
| Subject: | cvs: php-gcov-web /cron tests.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-36172@lists.php.net to get a copy of this message | ||
nlopess Thu Aug 9 13:29:51 2007 UTC
Modified files:
/php-gcov-web/cron tests.php
Log:
tune regex:
strip bogus chars in the SKIP reason
be less permissive in the filename to avoid bogus data import
http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/tests.php?r1=1.7&r2=1.8&diff_format=u
Index: php-gcov-web/cron/tests.php
diff -u php-gcov-web/cron/tests.php:1.7 php-gcov-web/cron/tests.php:1.8
--- php-gcov-web/cron/tests.php:1.7 Wed Jan 31 16:19:07 2007
+++ php-gcov-web/cron/tests.php Thu Aug 9 13:29:51 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tests.php,v 1.7 2007/01/31 16:19:07 nlopess Exp $ */
+/* $Id: tests.php,v 1.8 2007/08/09 13:29:51 nlopess Exp $ */
// Tests generation file
// $data: contains the contents of $tmpdir/php_test.log
@@ -26,7 +26,7 @@
$fail_tests = array();
$skip_tests = array();
$valgrind = array();
-$tests_re = '/\r(?P<status>[A-Z&]+)(?::(?P<testtype>[UN]))?
(?P<title>.+) \[(?P<file>[^\]]+)\](?: reason: (?P<reason>.+))?/';
+$tests_re = '/\r(?P<status>[A-Z&]+)(?::(?P<testtype>[UN]))?
(?P<title>.+) \[(?P<file>[^\]]+\.phpt)\](?: reason:[\s:.]+(?P<reason>.+))?/';
preg_match_all($tests_re, $data, $tests, PREG_SET_ORDER);