dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
07b9881
)
Merge "Use the phan exit code directly"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Fri, 9 Dec 2016 00:51:52 +0000
(
00:51
+0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 9 Dec 2016 00:51:52 +0000
(
00:51
+0000)
tests/phan/bin/phan
patch
|
blob
|
history
diff --git
a/tests/phan/bin/phan
b/tests/phan/bin/phan
index
e9222a4
..
cfaf9a1
100755
(executable)
--- a/
tests/phan/bin/phan
+++ b/
tests/phan/bin/phan
@@
-33,6
+33,8
@@
php7.0 $PHAN \
--output "$ROOT/tests/phan/issues/issues-${REV}" \
"${@}"
+EXIT_CODE="$?"
+
# Re-link the latest file
rm -f "${ISSUES}/latest"
ln -s "${RUN}" "${ISSUES}/latest"
@@
-40,6
+42,4
@@
ln -s "${RUN}" "${ISSUES}/latest"
# Output any issues that were found
cat "${RUN}"
-if [ $(wc -l < ${RUN}) -ne 0 ]; then
- exit 1
-fi
+exit $EXIT_CODE