com phpruntests: Updated tests and checker: QA/QATESTS.tgz QA/compareNewOld.php
| From: | David Soria Parra | Date: | Sat, 18 Jul 2009 17:49:35 +0000 |
| Subject: | com phpruntests: Updated tests and checker: QA/QATESTS.tgz QA/compareNewOld.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66326@lists.php.net to get a copy of this message | ||
Commit: bf66f24fa776abae44a64f5144cc106b7d1e6b29
Author: Zoe Slattery <zoe@php.net> Sat, 18 Jul 2009 17:49:35 +0000
Parents: 75797b24db2ebc9d84db9e5ee0f4a6d21bcfa1b6
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=bf66f24fa776abae44a64f5144cc106b7d1e6b29
Log:
Updated tests and checker
Changed paths:
M QA/QATESTS.tgz
M QA/compareNewOld.php
Diff:
diff --git a/QA/QATESTS.tgz b/QA/QATESTS.tgz
index cd5aff4..815f332 100644
Binary files a/QA/QATESTS.tgz and b/QA/QATESTS.tgz differ
diff --git a/QA/compareNewOld.php b/QA/compareNewOld.php
index 74140ee..2d2d999 100644
--- a/QA/compareNewOld.php
+++ b/QA/compareNewOld.php
@@ -57,7 +57,7 @@ function parseNew($output, $searchFor, $top_level) {
foreach($output as $line) {
if
(preg_match("/$top_level\/((ext|sapi|Zend|tests)\/\S+)\s{1},(.*)\s{1}$searchFor\s{1}/",
$line, $matches)) {
if($searchFor == 'FAIL') {
- if(!preg_match("/XFAIL/", $matches[2])) {
+ if(!preg_match("/XFAIL/", $line)) {
$result[] = $matches[1] . ".phpt";
}
} else {
@@ -65,14 +65,14 @@ function parseNew($output, $searchFor, $top_level) {
}
}
- }
+ }
return $result;
}
function parseOld($output, $searchFor) {
$result = array();
foreach($output as $line) {
- if (preg_match("/^TEST\s+\d+\/\d+\s+\[(.+\.phpt)\]\s+$searchFor/", $line, $matches)) {
+ if (preg_match("/^TEST\s+\d+\/\d+\s+\[(.+\.phpt)\]\s+$searchFor\s+/", $line, $matches))
{
$result[] = $matches[1];
}
}