mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix travis-job script to not fail when all tests succeed
Fixed by calling the "showdiag" function only when external tests fail.
This commit is contained in:
parent
a33d2d13bf
commit
f57611c2f0
1 changed files with 3 additions and 2 deletions
|
@ -158,8 +158,7 @@ run() {
|
|||
echo
|
||||
echo "Running external tests ##############################################"
|
||||
echo
|
||||
trap showdiag EXIT
|
||||
make
|
||||
make || showdiag
|
||||
|
||||
# If we get here, then external tests were successful.
|
||||
exit $ret
|
||||
|
@ -175,6 +174,8 @@ showdiag() {
|
|||
echo "Output of failed external tests #####################################" && \
|
||||
echo && \
|
||||
grep -v "... not available, skipped" $f
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ "$step" != "install" ] && [ "$step" != "build" ] && [ "$step" != "run" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue