[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 4/6] sg-report-flight: show the job recipe and overall status



Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 sg-report-flight |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/sg-report-flight b/sg-report-flight
index 1a7c316..0bf2b5d 100755
--- a/sg-report-flight
+++ b/sg-report-flight
@@ -767,6 +767,13 @@ sub htmloutjob ($$) {
     my $title= "Info on flight $fi->{Flight} job $job";
     my $branch= $fi->{FlightInfo}{branch};
 
+    our $htmlout_jobq ||= $dbh_tests->prepare(<<END);
+        SELECT * FROM jobs WHERE flight = ? AND job = ?
+END
+    $htmlout_jobq->execute($fi->{Flight}, $job);
+    my $ji = $htmlout_jobq->fetchrow_hashref();
+    die unless $ji;
+
     print H <<END;
 <html><head><title>$title</title><head>
 <body>
@@ -822,6 +829,12 @@ END
 
     print H <<END;
 </table>
+<h2>Job</h2>
+<table>
+<tr><td>Recipe:</td><td>$ji->{recipe}</td></tr>
+<tr><td>Status:</td><td>$ji->{status}</td></tr>
+</table>
+<p>
 <h2>Logfiles etc.</h2>
 For main test script logfiles, see entries in steps table.
 <ul>
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.