From: Ian Jackson Date: Fri, 2 Oct 2020 15:19:29 +0000 (+0100) Subject: sg-report-flight: Improvements to other job (share/reuse) reporting X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d6e8c11b1c1ca4cc2210cac138dfef4c49492984;p=osstest.git sg-report-flight: Improvements to other job (share/reuse) reporting * Prefer to show "prep" (purple) rather than "share". * Show our own relationship, in particular to show if it was prep. Signed-off-by: Ian Jackson --- diff --git a/sg-report-flight b/sg-report-flight index 7dc218c..2a79db1 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -1473,12 +1473,12 @@ END "$c{ResultsHtmlPubBaseUrl}/host/$srow->{hostname}.html", $srow->{hostname}; my $rel = - $srow->{olive} ? - "share" - : $srow->{prep_started} ? "prep." : + $srow->{olive} ? + "share" + : "reuse"; if (defined $srow->{flight}) { my $furl = "$c{ReportHtmlPubBaseUrl}/$srow->{flight}/"; @@ -1499,8 +1499,10 @@ END END $jurl, $srow->{job}; } else { - printf H < + confess unless $rel =~ m{([0-9a-z. ]+)\$}; + $rel = '' if $1 eq 'reuse'; + printf H <this this END