]> granicus.if.org Git - pdns/commitdiff
Update nobackend/runtests to exit with failure and add to travis build.
authorRuben d'Arco <cyclops@prof-x.net>
Fri, 1 Mar 2013 16:35:16 +0000 (17:35 +0100)
committermind04 <mind04@monshouwer.org>
Fri, 12 Jul 2013 15:26:18 +0000 (17:26 +0200)
.travis.yml
regression-tests.nobackend/runtests

index 56cb3d50338ec04b277dd0cd058ead2e051dd8f7..f5edc352bdcfda5d10c211e46222b23df52301fa 100644 (file)
@@ -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:
index 89d9ca34fb188b50b5c0c77c018b8c782f854f99..2e9a38ca142327ff2eeabb43c7c79447b821df83 100755 (executable)
@@ -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