From: Ruben d'Arco Date: Fri, 1 Mar 2013 16:35:16 +0000 (+0100) Subject: Update nobackend/runtests to exit with failure and add to travis build. X-Git-Tag: rec-3.6.0-rc1~556^2~3^2~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=174326bf5d997cf5a4541ae0842a1face810f7db;p=pdns Update nobackend/runtests to exit with failure and add to travis build. --- diff --git a/.travis.yml b/.travis.yml index 56cb3d503..f5edc352b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,6 @@ script: - ./start-test-stop 5300 gmysql-nsec3-optout-presigned nowait 3600 - cd ../regression-tests.nobackend/ - ./runtests - - test ! -s ./failed_tests notifications: irc: channels: diff --git a/regression-tests.nobackend/runtests b/regression-tests.nobackend/runtests index 89d9ca34f..2e9a38ca1 100755 --- a/regression-tests.nobackend/runtests +++ b/regression-tests.nobackend/runtests @@ -3,3 +3,11 @@ set -ex export testsdir=$(pwd) ../regression-tests/runtests ../regression-tests/toxml + +failed_tests=`wc -l failed_tests | cut -f 1 -d ' '` +if [ $failed_tests = 0 ]; +then + exit 0; +else + exit 1; +fi