Only fail on real fails

This commit is contained in:
Moritz 'Morty' Strübe 2014-10-08 10:59:59 +02:00
parent 74b741bad2
commit 9236b68779

View file

@ -78,7 +78,7 @@ after_script:
- "[ ${BUILD_CATEGORY:-sim} = sim ] && tail regression-tests/??-$BUILD_TYPE/*.testlog" - "[ ${BUILD_CATEGORY:-sim} = sim ] && tail regression-tests/??-$BUILD_TYPE/*.testlog"
## Print a basic summary ## Print a basic summary
- "echo 'Summary:'; cat regression-tests/??-$BUILD_TYPE/summary" - "echo 'Summary:'; cat regression-tests/??-$BUILD_TYPE/summary"
- "FAILS=`grep -c -i 'fail' regression-tests/??-$BUILD_TYPE/summary`" - "FAILS=`grep -c ' FAIL ' regression-tests/??-$BUILD_TYPE/summary`"
## This will detect whether the build should pass or fail ## This will detect whether the build should pass or fail
- "test $FAILS -eq 0; exit $?" - "test $FAILS -eq 0; exit $?"