dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6730b1
)
parserTests.php: Fix exit status
author
Tim Starling
<tstarling@wikimedia.org>
Mon, 12 Sep 2016 06:43:38 +0000
(16:43 +1000)
committer
Legoktm
<legoktm.wikipedia@gmail.com>
Mon, 12 Sep 2016 06:48:17 +0000
(06:48 +0000)
The return value of Maintenance::execute() is discarded, not used as an
exit status.
Change-Id: I9dd92e43b5b1df1a63d0e8302d360d0bb0f57e7b
tests/parser/parserTests.php
patch
|
blob
|
history
diff --git
a/tests/parser/parserTests.php
b/tests/parser/parserTests.php
index
8d5f072
..
38923f0
100644
(file)
--- a/
tests/parser/parserTests.php
+++ b/
tests/parser/parserTests.php
@@
-185,7
+185,9
@@
class ParserTestsMaintenance extends Maintenance {
if ( $recorderLB ) {
$recorderLB->closeAll();
}
- return $ok ? 0 : 1;
+ if ( !$ok ) {
+ exit( 1 );
+ }
}
}