From: Ian Jackson Date: Thu, 8 Oct 2020 18:02:14 +0000 (+0100) Subject: sg-report-flight: Nicer output for --refer-to-flight option X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=99841289cdc2e252f39aeb497977a99701b579d9;p=osstest.git sg-report-flight: Nicer output for --refer-to-flight option Sort the flight summary lines together, before the URLs. This makes it considerably easier to read. Signed-off-by: Ian Jackson --- diff --git a/sg-report-flight b/sg-report-flight index bcd896a..cbd3959 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -796,12 +796,17 @@ sub includes ($) { } } -sub printout_flightheader ($) { - my ($r) = @_; - bodyprint <{Flight} $branch $r->{FlightInfo}{blessing} [$r->{FlightInfo}{intended}] +END + } + foreach my $r (@_) { + bodyprint <{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";