]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-report-flight: Improvements to other job (share/reuse) reporting
authorIan Jackson <iwj@xenproject.org>
Fri, 2 Oct 2020 15:19:29 +0000 (16:19 +0100)
committerIan Jackson <iwj@xenproject.org>
Wed, 7 Oct 2020 17:39:48 +0000 (18:39 +0100)
* 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 <iwj@xenproject.org>
sg-report-flight

index 7dc218cfa4250aec6e90a0a54710e082afd3241a..2a79db13b418fdfb57714626e8406b82349ffd20 100755 (executable)
@@ -1473,12 +1473,12 @@ END
          "$c{ResultsHtmlPubBaseUrl}/host/$srow->{hostname}.html",
          $srow->{hostname};
        my $rel =
-         $srow->{olive} ?
-         "<td align=\"center\" bgcolor=\"$red\">share</td>"
-         :
          $srow->{prep_started} ?
          "<td align=\"center\" bgcolor=\"$purple\">prep.</td>"
          :
+         $srow->{olive} ?
+         "<td align=\"center\" bgcolor=\"$red\">share</td>"
+         :
          "<td align=\"center\">reuse</td>";
         if (defined $srow->{flight}) {
            my $furl = "$c{ReportHtmlPubBaseUrl}/$srow->{flight}/";
@@ -1499,8 +1499,10 @@ END
 END
                  $jurl, $srow->{job};
            } else {
-               printf H <<END;
-<td></td>
+               confess unless $rel =~ m{([0-9a-z. ]+)\</td\>$};
+               $rel = '<td></td>' if $1 eq 'reuse';
+               printf H <<END, $rel;
+%s
 <td align="center">this</td>
 <td align="center">this</td>
 END