OSDN Git Service

tap: flush STDOUT on newline
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Jan 2019 17:55:36 +0000 (18:55 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Feb 2019 15:50:16 +0000 (16:50 +0100)
This makes it easier to follow what is going on.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/tap-driver.pl
scripts/tap-merge.pl

index 5e59b5d..6621a5c 100755 (executable)
@@ -313,6 +313,7 @@ sub main ()
   my $iterator = TAP::Parser::Iterator::Stream->new(\*STDIN);
   my $parser = TAP::Parser->new ({iterator => $iterator });
 
+  STDOUT->autoflush(1);
   while (defined (my $cur = $parser->next))
     {
       # Parsing of TAP input should stop after a "Bail out!" directive.
index 59e3fa5..10ccf57 100755 (executable)
@@ -53,6 +53,7 @@ sub main ()
   my $testno = 0;     # Number of test results seen so far.
   my $bailed_out = 0; # Whether a "Bail out!" directive has been seen.
 
+  STDOUT->autoflush(1);
   while (defined (my $cur = $parser->next))
     {
       if ($cur->is_bailout)