From: Mark Andrews Date: Sun, 4 Sep 2011 12:12:15 +0000 (+0000) Subject: report R:PASS/FAIL X-Git-Tag: v9.9.0a2~1^2~34 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=df864361fd66b91f0069a2e2aefcf45515103dcc;p=thirdparty%2Fbind9.git report R:PASS/FAIL --- diff --git a/unit/unittest.sh.in b/unit/unittest.sh.in index 0f0ea81e223..488dd879237 100644 --- a/unit/unittest.sh.in +++ b/unit/unittest.sh.in @@ -3,13 +3,22 @@ PATH="@ATFBIN@:${PATH}" export PATH +status=0 if [ -n "@ATFBIN@" ] then + echo "I: unit tests" atf-run > atf.out status=$? # | cat is there to force non-fancy output atf-report < atf.out | cat - [ $status -eq 0 ] && rm -f atf.out + if [ $status -eq 0 ] + then + rm -f atf.out + echo R:PASS + else + echo R:FAIL + fi fi +exit $status