]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
serial logs capture: chomp parameters to the perl script
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 10 Apr 2017 16:46:47 +0000 (16:46 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 12 Apr 2017 11:13:03 +0000 (12:13 +0100)
For reasons that aren't clear, perl's glob operator ignores the \n.
We can gloss over that for now, but let's chomp it in case they fix
that.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Serial/sympathy.pm

index 0d09576f471ecc0541d20bb506d1c327b603fa9c..84a1e09d9f3314e09ef7fe2eb1c6f154de805b9e 100644 (file)
@@ -106,8 +106,8 @@ sub fetch_logs {
         use strict qw(refs vars);
         use IO::File;
         $|=1;
-        my $started= <DATA>;  defined $started or die $!;
-        my $logpat= <DATA>;   defined $logpat or die $!;
+        my $started= <DATA>;  chomp $started or die $!;
+        my $logpat= <DATA>;   chomp $logpat or die $!;
 
         my %done;
         for (;;) {