Explicitly count the number of failed tests, test equality with 0, and explicitly exit with a non-zero error status if there are non-zero failed tests
This commit is contained in:
parent
70e46f3248
commit
ddb3c62524
1 changed files with 3 additions and 2 deletions
|
@ -25,10 +25,11 @@ script:
|
|||
- "make -C regression-tests/??-$BUILD_TYPE RUNALL=true summary"
|
||||
|
||||
after_script:
|
||||
## Print a basic summary in unix style
|
||||
## Print a basic summary
|
||||
- "echo 'Summary:'; cat regression-tests/??-$BUILD_TYPE/summary"
|
||||
- "FAILS=`grep -c -i 'fail' regression-tests/??-$BUILD_TYPE/summary`"
|
||||
## This will detect whether the build should pass or fail
|
||||
- "test `grep -c -i 'fail' regression-tests/??-$BUILD_TYPE/summary` -eq 0"
|
||||
- "test $FAILS -eq 0; exit $?"
|
||||
|
||||
|
||||
env:
|
||||
|
|
Loading…
Reference in a new issue