|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 2/4] Reporting: Make HTML reports for bisection flights too
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@xxxxxxxxxxxxx>
---
cri-bisect | 5 ++++-
sg-report-host-history | 2 +-
sg-report-job-history | 3 ++-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/cri-bisect b/cri-bisect
index 03b2e29..2ce9945 100644
--- a/cri-bisect
+++ b/cri-bisect
@@ -110,7 +110,10 @@ END
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>&-
diff --git a/sg-report-host-history b/sg-report-host-history
index f33fafa..8e0e2aa 100755
--- a/sg-report-host-history
+++ b/sg-report-host-history
@@ -238,7 +238,7 @@ END
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>";
diff --git a/sg-report-job-history b/sg-report-job-history
index 031bd4a..e20c376 100755
--- a/sg-report-job-history
+++ b/sg-report-job-history
@@ -244,7 +244,8 @@ END
$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;
--
1.7.10.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |