[Pkg-octave-commit] [octave-interval] 01/02: d/check.m: Fail package build on test failures

Oliver Heimlich oheim-guest at moszumanska.debian.org
Fri Feb 12 22:44:59 UTC 2016


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

oheim-guest pushed a commit to branch master
in repository octave-interval.

commit 19d021d3269ce95120f0db093768c0b873d49af8
Author: Oliver Heimlich <oheim at posteo.de>
Date:   Fri Feb 12 23:03:36 2016 +0100

    d/check.m: Fail package build on test failures
---
 debian/check.m | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/check.m b/debian/check.m
index 904c397..b69e383 100644
--- a/debian/check.m
+++ b/debian/check.m
@@ -1,6 +1,9 @@
 ## The interval package contains additional .tst files,
 ## which are not checked by default.
 disp ("Checking supplementary TST files ...");
+success = true;
 for file = {dir("./inst/test/*.tst").name}
-    test (file{1}, "quiet", stdout);
+    success &= test (file{1}, "quiet", stdout);
 endfor
+## Fail the package build if one of the tests failed
+exit (not (success));

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



More information about the Pkg-octave-commit mailing list