Provide an appropriate --html-dir option to sg-report-flight.
(Bisection flights still do not run sg-report-host-history and
sg-report-job-history, which are fairly expensive.)
Make references to jobs from sg-report-job-history and
sg-report-host-history go to the /info.html page, not the webserver
directory listing. (sg-report-flight's references already do.)
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
cat >&3 $reportfile
if $flight_executed; then
echo >&3 ----------------------------------------
- ./sg-report-flight >&3 $flight
+ if [ "x$OSSTEST_HTMLPUB_DIR" != x ]; then
+ sgr_args+="$OSSTEST_HTMLPUB_DIR/$flight/"
+ fi
+ ./sg-report-flight $sgr_args >&3 $flight
./cr-publish-flight-logs --push-harness $flight
fi
exec 3>&-
my $url= "$c{ReportHtmlPubBaseUrl}/$jr->{flight}";
print H "<td><a href=\"$url\">$jr->{flight}</a></td>\n";
$url= "$c{ReportHtmlPubBaseUrl}/$jr->{flight}/".
- encode_entities($jr->{job})."/";
+ encode_entities($jr->{job})."/info.html";
print H "<td>$ir->{branch}</td>";
print H "<td>$ir->{intended}</td>";
print H "<td>";
$url= "$c{ReportHtmlPubBaseUrl}/$flt";
print H "<td><a href=\"$url\">$flt</a></td>\n";
print H "<td>".encode_entities($r->{Flight}{branch})."</td>\n";
- $url= "$c{ReportHtmlPubBaseUrl}/$flt/".encode_entities($j)."/";
+ $url= "$c{ReportHtmlPubBaseUrl}/$flt/".encode_entities($j).
+ "/info.html";
print H "<td $r->{ColourAttr}><a href=\"$url\">".
$r->{Content}."</a></td>\n";
my $lastrev;