[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/06: t/runtests: Send only one error per test



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

nthykier pushed a commit to branch master
in repository lintian.

commit 874a8fc2206456c21c14926fac8b01fe53b84b50
Author: Niels Thykier <niels@thykier.net>
Date:   Mon Jan 18 19:42:02 2016 +0000

    t/runtests: Send only one error per test
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/runtests | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/t/runtests b/t/runtests
index 553ef6f..8362588 100755
--- a/t/runtests
+++ b/t/runtests
@@ -584,7 +584,7 @@ sub generic_test_runner {
         if ($res) {
             $test_state->dump_log($testname, "$RUNDIR/build.$testname")
               if $DUMP_LOGS;
-            $test_state->test_error(
+            return $test_state->test_error(
                 join(q{ },
                     "cd $targetdir &&",
                     "fakeroot make >../build.$testname 2>&1 failed"));
@@ -597,12 +597,12 @@ sub generic_test_runner {
     my $file = shift @matches;
     unless ($file && -e $file) {
         $file //= '<N/A>';
-        $test_state->test_error(
+        return $test_state->test_error(
             join(q{ },
                 "$testname did not produce any file matching",
                 "\"$targetdir/*.$ext\" ($file)"));
     }
-    $test_state->test_error(
+    return $test_state->test_error(
         join(q{ },
             "$testname produced more than one file",
             "matching \"$targetdir/*.$ext\""))if @matches;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: