Improving way of viewing testsuite results
This commit is contained in:
parent
6a6b832166
commit
ca5926ced8
2 changed files with 20 additions and 1 deletions
|
@ -6,6 +6,22 @@ from sumfiles import get_web_base
|
||||||
import os.path
|
import os.path
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import git
|
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):
|
class SaveGDBResults (ShellCommand):
|
||||||
name = 'save build results'
|
name = 'save build results'
|
||||||
|
|
|
@ -146,7 +146,10 @@ send to the gdb-testers mailing list."""
|
||||||
# URL to find more info about what went wrong.
|
# URL to find more info about what went wrong.
|
||||||
text += "Log URL(s):\n"
|
text += "Log URL(s):\n"
|
||||||
for ss in ss_list:
|
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)
|
# text += "\t<%sresults/%s/%s>\n" % (master_status.getBuildbotURL (), name, ss.revision)
|
||||||
|
|
||||||
# Who's to blame?
|
# Who's to blame?
|
||||||
|
|
Loading…
Reference in a new issue