]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-report-flight: Nicer output for --refer-to-flight option
authorIan Jackson <iwj@xenproject.org>
Thu, 8 Oct 2020 18:02:14 +0000 (19:02 +0100)
committerIan Jackson <iwj@xenproject.org>
Thu, 15 Oct 2020 15:06:48 +0000 (16:06 +0100)
Sort the flight summary lines together, before the URLs.  This makes
it considerably easier to read.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
sg-report-flight

index bcd896a865dc312c057eb74797d43952e4cad67b..cbd39599f338b259a79074308cd20e07ed4d70af 100755 (executable)
@@ -796,12 +796,17 @@ sub includes ($) {
     }
 }    
 
-sub printout_flightheader ($) {
-    my ($r) = @_;
-    bodyprint <<END;
+sub printout_flightheaders {
+    foreach my $r (@_) {
+       bodyprint <<END;
 flight $r->{Flight} $branch $r->{FlightInfo}{blessing} [$r->{FlightInfo}{intended}]
+END
+    }
+    foreach my $r (@_) {
+       bodyprint <<END;
 $c{ReportHtmlPubBaseUrl}/$r->{Flight}/
 END
+    }
 }
 
 sub printout {
@@ -814,12 +819,7 @@ sub printout {
 $r->{Flight}: $r->{OutcomeSummary}
 END
     includes(\@includebeginfiles);
-
-    printout_flightheader($r);
-
-    foreach my $ref_r (@refer_to_flights) {
-       printout_flightheader($ref_r);
-    }
+    printout_flightheaders $r, @refer_to_flights;
 
     if (defined $r->{Overall}) {
         bodyprint "\n";