winetest: Show the short date in the title of per-build pages.
Francois Gouget
fgouget at free.fr
Thu Feb 6 12:24:04 CST 2014
This makes it easier to not mix up tabs when multiple build result pages are open.
---
Note that I couldn't test this patch and it's a bit more complex than
the others. So test carfully before applying it.
winetest/gather | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/winetest/gather b/winetest/gather
index 97a5a37..b16dcf6 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -422,6 +422,7 @@ EOF
my $header_footer=build_header_footer(\@groups);
my $short_build = substr($build,0,12);
+my $timestamp = `git log --max-count=1 --pretty="format:%ct" "$build^0" 2>/dev/null`
my $legend =
"<div class=\"legend\">
@@ -661,6 +662,9 @@ EOF
if (defined $group)
{
+ my @date = gmtime($timestamp);
+ my @months = ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
+
print OUT "<div class=\"navbar\">\n";
print OUT "<a href=\"/site?testing=prev&group=$group_name¤t=$build\">prev</a>";
print OUT " | <a href=\"/site?testing=next&group=$group_name¤t=$build\">next</a>";
@@ -668,7 +672,7 @@ EOF
print OUT " | <a href=\"..\">index</a>\n";
print OUT "<script type=\"text/javascript\" src=\"/summary.js\"></script>\n</div>\n";
print OUT "<div class=\"group\">\n";
- print OUT "<h1>$group_name results for build <a href=\".\" title=\"$build\">$short_build</a></h1>\n";
+ printf OUT "<h1>$group_name results for build <a href=\".\" title=\"$build\">$short_build</a> (%02d %s)</h1>\n", $date[3], $months[$date[4]];
print OUT "<table class=\"report\">\n$header_footer\n <tbody onDblClick=\"clone();\">\n";
}
else
@@ -679,7 +683,7 @@ EOF
print OUT " | <a href=\"..\">index</a>";
print OUT "<script type=\"text/javascript\" src=\"/summary.js\"></script>\n</div>\n";
print OUT "<div class=\"main\">\n";
- print OUT "<h1>Main summary for build <a href=\"/builds/winetest-$short_build.exe\" title=\"$build\">$short_build</a></h1>\n";
+ printf OUT "<h1>Main summary for build <a href=\"/builds/winetest-$short_build.exe\" title=\"$build\">$short_build</a> (%02d %s)</h1>\n", $date[3], $months[$date[4]];
print OUT "<table class=\"report\">\n$header_footer\n <tbody onDblClick=\"clone();\">\n";
}
--
1.8.5.2
More information about the wine-patches
mailing list