com web/qa: Match expected failed and failed test filenames: reports/parserfunc.php
| From: | Christoph Michael Becker | Date: | Wed, 25 Jul 2018 21:43:26 +0000 |
| Subject: | com web/qa: Match expected failed and failed test filenames: reports/parserfunc.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-68141@lists.php.net to get a copy of this message | ||
Commit: 271cdf420c877e55339ef921705dedcc2b6f1bfc
Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 25 Jul 2018 23:43:26 +0200
Parents: 5d9e7526a065b7d661bf5fee6c9aaf222f29ae83
Branches: master
Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=271cdf420c877e55339ef921705dedcc2b6f1bfc
Log:
Match expected failed and failed test filenames
Presently, XFAIL test filenames don't have a leading slash, while the
filenames of failing tests do. We add a leading slash to XFAIL
filenames for purely cosmetical reasons.
Changed paths:
M reports/parserfunc.php
Diff:
diff --git a/reports/parserfunc.php b/reports/parserfunc.php
index 6b58770..79eff75 100644
--- a/reports/parserfunc.php
+++ b/reports/parserfunc.php
@@ -159,6 +159,7 @@ SQL;
}
foreach ($array['expectedFailedTest'] as $name) {
+ if (substr($name, 0, 1) != '/') $name = '/'.$name;
$query = <<<'SQL'
INSERT INTO
expectedfail (id, id_report,
test_name)
VALUES (null, :id_report, :test_name)