Improving way of viewing testsuite results

This commit is contained in:
Sergio Durigan Junior 2015-01-14 22:56:49 -05:00
parent 6a6b832166
commit ca5926ced8
2 changed files with 20 additions and 1 deletions

View file

@ -6,6 +6,22 @@ from sumfiles import get_web_base
import os.path
from datetime import datetime
import git
import re
def get_builder_commit_id (builder, commit):
"""Get the commit hash in the BUILDER's repository which points to the
log files of the COMMIT that was tested."""
repodir = os.path.join (get_web_base (), builder)
repo = git.Repo.init (path = repodir)
commit_id_re = re.compile ("^\d{8}-\d{6}-%s$" % commit)
for t in repo.tags:
m = commit_id_re.match (t.name)
if not m:
continue
return t.commit.__str__ ()
return None
class SaveGDBResults (ShellCommand):
name = 'save build results'

View file

@ -146,7 +146,10 @@ send to the gdb-testers mailing list."""
# URL to find more info about what went wrong.
text += "Log URL(s):\n"
for ss in ss_list:
text += "\t<%s/%s/.git/log/?qt=grep&q=%s>\n" % (git_url, name, ss.revision)
text += "\t<%s/%s/.git/tree/?id=%s>\n" % (git_url, name,
get_builder_commit_id (name,
ss.revision))
# text += "\t<%s/%s/.git/log/?qt=grep&q=%s>\n" % (git_url, name, ss.revision)
# text += "\t<%sresults/%s/%s>\n" % (master_status.getBuildbotURL (), name, ss.revision)
# Who's to blame?