com phpruntests: fix regular expression: QA/compareNewOld.php

From: Date: Sat, 18 Jul 2009 15:01:02 +0000
Subject: com phpruntests: fix regular expression: QA/compareNewOld.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66328@lists.php.net to get a copy of this message
Commit: d27e6fbd85b3c729716bf370125d3da47365d3ac Author: Zoe Slattery <zoe@php.net> Sat, 18 Jul 2009 15:01:02 +0000 Parents: 62543625fb339af13de870c967a4ab0af8933cfa Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=d27e6fbd85b3c729716bf370125d3da47365d3ac Log: fix regular expression Changed paths: M QA/compareNewOld.php Diff: diff --git a/QA/compareNewOld.php b/QA/compareNewOld.php index 47006cd..74140ee 100644 --- a/QA/compareNewOld.php +++ b/QA/compareNewOld.php @@ -72,7 +72,7 @@ return $result; function parseOld($output, $searchFor) { $result = array(); foreach($output as $line) { - if (preg_match("/$searchFor.*\[(.+\.phpt)\]/", $line, $matches)) { + if (preg_match("/^TEST\s+\d+\/\d+\s+\[(.+\.phpt)\]\s+$searchFor/", $line, $matches)) { $result[] = $matches[1]; } }

« previous php.qa (#66328) next »