From: Evan Hunt Date: Fri, 9 Mar 2018 00:53:16 +0000 (-0800) Subject: capture more information from unit tests X-Git-Tag: v9.9.13rc1~54^2~1 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=292ddceca3008a49a0408cfdb15853721dffa4b5;p=thirdparty%2Fbind9.git capture more information from unit tests - preserve kyua results database when using kyua (cherry picked from commit 81c23fecda7ccbd5949d78471bb047cf5e8ac33b) --- diff --git a/unit/unittest.sh.in b/unit/unittest.sh.in index 2ddbdb77039..bcbb89394ee 100755 --- a/unit/unittest.sh.in +++ b/unit/unittest.sh.in @@ -10,7 +10,7 @@ if [ -n "@UNITTESTS@" -a -x "$ATFRUN" -a -f Atffile ] then echo "S:unit:`date`" echo "T:unit:1:A" - echo "I: unit tests" + echo "I: unit tests (using atf-run)" atf-run > atf.out status=$? @@ -29,11 +29,11 @@ elif [ -n "@UNITTESTS@" -a -x "$KYUA" -a -f Kyuafile ] then echo "S:unit:`date`" echo "T:unit:1:A" - echo "I: unit tests" - kyua --logfile kyua.log test + echo "I: unit tests (using kyua)" + kyua --logfile kyua.log --loglevel debug test --results-file ${KYUA_RESULT:-NEW} status=$? - kyua report + kyua report --results-file ${KYUA_RESULT:-LATEST} if [ $status -eq 0 ] then