[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: add icons to package test history pages

Holger Levsen holger at layer-acht.org
Tue May 17 12:05:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 9d05eaaf17ada447446ad335e1e7d05bf13560de
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue May 17 14:03:03 2016 +0200

    reproducible debian: add icons to package test history pages
---
 bin/reproducible_html_packages.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index fe64450..ed58b05 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -211,6 +211,10 @@ def gen_history_page(package):
             html += '<th>{}</th>'.format(i)
         html += '\n{tab}</tr>'.format(tab=tab)
         for record in package.history:
+            # add icon to result
+            status, icon, spokenstatus = get_status_icon(record['result'])
+            result_html = '<img src="/static/{icon}" alt="{spokenstatus}" title="{spokenstatus}"/> ' + spokenstatus
+            record['result'] = result_html.format(icon=icon, spokenstatus=spokenstatus)
             # human formatting of build duration
             record['build duration'] = convert_into_hms_string(
                 int(record['build duration']))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list