[Pkg-octave-commit] [octave-pkg-dev] 07/07: check-pkg: Make the script fail if any unit test fails

Rafael Laboissiere rafael at debian.org
Wed Aug 30 14:10:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

rafael pushed a commit to branch master
in repository octave-pkg-dev.

commit 378150f82e45e600b8bca1c8ec121beeb8c34853
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Wed Aug 30 10:58:56 2017 -0300

    check-pkg: Make the script fail if any unit test fails
---
 check-pkg | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/check-pkg b/check-pkg
index 4e68607..bb93245 100755
--- a/check-pkg
+++ b/check-pkg
@@ -105,3 +105,6 @@ while read f1 f2 f3 f4 f5 ; do
 done < $tmp_results
 rm -f $tmp_results
 echo "Summary: $ntest tests, $npass passed, $nxfail known failures, $nskip skipped"
+if [ "$(( $ntest > $npass + $nxfail + $nskip ))" = 1 ] ; then
+    exit 1
+fi

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-pkg-dev.git



More information about the Pkg-octave-commit mailing list