[lintian] 01/01: t/runtests: Avoid printing "whitespace \r"-lines to non-ttys
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit f5619a4b3c7caa95a1082d725a9c4e0d877cee86
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Apr 6 21:27:30 2014 +0200
    t/runtests: Avoid printing "whitespace \r"-lines to non-ttys
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/runtests | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/runtests b/t/runtests
index 6106951..9994752 100755
--- a/t/runtests
+++ b/t/runtests
@@ -1018,7 +1018,7 @@ sub msg_print {
 
 sub _flush {
     my ($thrs, $id, $length) = @_;
-    print(' 'x$length,"\r");
+    print(' 'x$length,"\r") if $output_is_tty;
     while (my $m = shift @{$thrs->{$id}}) {
         print $m;
     }
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: