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

[lintian] 01/01: t/runtests: Hide "pass" and "skip" messages



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

nthykier pushed a commit to branch master
in repository lintian.

commit f23e45d4f889f6637c44d4e6e2a51bd5dbc745dc
Author: Niels Thykier <niels@thykier.net>
Date:   Fri Dec 25 14:37:36 2015 +0000

    t/runtests: Hide "pass" and "skip" messages
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/runtests | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/t/runtests b/t/runtests
index 02b1a9e..44e26c9 100755
--- a/t/runtests
+++ b/t/runtests
@@ -775,7 +775,7 @@ sub handle_msg_from_child {
         or $msg_type eq 'pass-todo') {
         my $is_problem = ($msg_type eq 'fail' or $msg_type eq 'error');
         my ($info_msg) = @payload;
-        my ($test, $final_msg);
+        my ($test, $final_msg, $show_msg);
 
         if ($is_problem) {
             push(@failed, "${suite}::${testname}");
@@ -789,7 +789,10 @@ sub handle_msg_from_child {
         }
         $final_msg = "${msg_type} ${suite}::${testname}";
         $final_msg .= ": ${info_msg}" if defined($info_msg);
-        print "${final_msg}\n";
+        $show_msg = 1 if $msg_type ne 'pass'
+            and $msg_type ne 'pass-todo' and $msg_type ne 'skip';
+        $show_msg = 1 if $output_is_tty or $VERBOSE;
+        print "${final_msg}\n" if $show_msg;
 
         $test = shift(@{$test_queue});
 

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


Reply to: