From: Ian Jackson Subject: [OSSTEST PATCH 3/6] sg-report-job-history: Show osstest version too Date: Wed, 1 Jul 2015 12:59:40 +0100 Message-ID: <1435751983-18984-4-git-send-email-ian.jackson@eu.citrix.com> References: <1435751983-18984-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 1ZAGgF-0005nl-Pz for xen-devel@lists.xenproject.org; Wed, 01 Jul 2015 11:59:55 +0000 In-Reply-To: <1435751983-18984-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 Signed-off-by: Ian Jackson --- sg-report-job-history | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sg-report-job-history b/sg-report-job-history index 95ae409..031bd4a 100755 --- a/sg-report-job-history +++ b/sg-report-job-history @@ -199,6 +199,12 @@ END push @test_rows, $ri; } + my $osstestverq= db_prepare(<startedflight", "branchfailure\n"; print H "", (join ", ", @hostvarcols), "\n"; + print H "osstest"; foreach my $c (@rev_grid_cols) { print H "".encode_entities($c)."\n"; } @@ -243,6 +250,17 @@ END my $lastrev; my $hosts = join ", ", map { $_ // "-" } @{ $r->{Hosts} }; print H "".encode_entities($hosts)."\n"; + $osstestverq->execute($r->{Flight}{flight}); + print H + "", + (join ' ', + map { + $_ = $_->{harness}; + s/^([0-9a-f]{12})[0-9a-f]+\b/$1/; + "".encode_entities($_).""; + } + @{ $osstestverq->fetchall_arrayref({}) }), + "\n"; foreach my $i (0..$#rev_grid_cols) { my $v= $r->{Revisions}[$i]; my $same= -- 1.7.10.4