From ddb3c625248705dd69032af08d10ae657448895f Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Mon, 17 Dec 2012 12:34:58 +0100 Subject: [PATCH] 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 --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f24c9a1e9..b4843a76c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: