From: Ian Jackson Subject: [OSSTEST PATCH 2/4] Reporting: Make HTML reports for bisection flights too Date: Wed, 8 Jul 2015 16:21:14 +0100 Message-ID: <1436368876-23964-2-git-send-email-ian.jackson@eu.citrix.com> References: <1436368876-23964-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZCrEU-0007SD-Sq for xen-devel@lists.xenproject.org; Wed, 08 Jul 2015 15:25:58 +0000 In-Reply-To: <1436368876-23964-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org 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 --- 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 "$jr->{flight}\n"; $url= "$c{ReportHtmlPubBaseUrl}/$jr->{flight}/". - encode_entities($jr->{job})."/"; + encode_entities($jr->{job})."/info.html"; print H "$ir->{branch}"; print H "$ir->{intended}"; print H ""; 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 "$flt\n"; print H "".encode_entities($r->{Flight}{branch})."\n"; - $url= "$c{ReportHtmlPubBaseUrl}/$flt/".encode_entities($j)."/"; + $url= "$c{ReportHtmlPubBaseUrl}/$flt/".encode_entities($j). + "/info.html"; print H "{ColourAttr}>". $r->{Content}."\n"; my $lastrev; -- 1.7.10.4