cvs: php-gcov-web /cron tests.php
| From: | Nuno Lopes | Date: | Tue, 30 Jan 2007 18:32:43 +0000 |
| Subject: | cvs: php-gcov-web /cron tests.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-33981@lists.php.net to get a copy of this message | ||
nlopess Tue Jan 30 18:32:43 2007 UTC
Modified files:
/php-gcov-web/cron tests.php
Log:
simplify regex
http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/tests.php?r1=1.5&r2=1.6&diff_format=u
Index: php-gcov-web/cron/tests.php
diff -u php-gcov-web/cron/tests.php:1.5 php-gcov-web/cron/tests.php:1.6
--- php-gcov-web/cron/tests.php:1.5 Tue Jan 30 18:15:49 2007
+++ php-gcov-web/cron/tests.php Tue Jan 30 18:32:42 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tests.php,v 1.5 2007/01/30 18:15:49 nlopess Exp $ */
+/* $Id: tests.php,v 1.6 2007/01/30 18:32:42 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 = '/^(?P<status>[A-Z&]+)(?::(?P<testtype>[a-z|A-Z]))?
(?P<title>.+) \[(?P<file>[^\]]+)\](?: reason: (?P<reason>.+))?/m';
+$tests_re = '/^(?P<status>[A-Z&]+)(?::(?P<testtype>[UN]))? (?P<title>.+)
\[(?P<file>[^\]]+)\](?: reason: (?P<reason>.+))?/m';
preg_match_all($tests_re, $data, $tests, PREG_SET_ORDER);
@@ -41,7 +41,7 @@
$report_file = $base;
- if (isset($test['testtype']) && strtolower($test['testtype']) ==
'u') {
+ if (isset($test['testtype']) && $test['testtype'] === 'U') {
$testtype = 'Unicode';
$report_file .= 'u.';
} else {