Adjust get_builder_commit_id
This commit is contained in:
parent
98b6badc46
commit
8fc0e84d2f
2 changed files with 3 additions and 3 deletions
|
@ -8,12 +8,12 @@ from datetime import datetime
|
||||||
import git
|
import git
|
||||||
import re
|
import re
|
||||||
|
|
||||||
def get_builder_commit_id (builder, commit):
|
def get_builder_commit_id (builder, commit, branch):
|
||||||
"""Get the commit hash in the BUILDER's repository which points to the
|
"""Get the commit hash in the BUILDER's repository which points to the
|
||||||
log files of the COMMIT that was tested."""
|
log files of the COMMIT that was tested."""
|
||||||
repodir = os.path.join (get_web_base (), builder)
|
repodir = os.path.join (get_web_base (), builder)
|
||||||
repo = git.Repo.init (path = repodir)
|
repo = git.Repo.init (path = repodir)
|
||||||
commit_id_re = re.compile ("^\d{8}-\d{6}-%s$" % commit)
|
commit_id_re = re.compile ("^\d{8}-\d{6}-%s-%s$" % (commit, branch))
|
||||||
|
|
||||||
for t in repo.tags:
|
for t in repo.tags:
|
||||||
m = commit_id_re.match (t.name)
|
m = commit_id_re.match (t.name)
|
||||||
|
|
|
@ -168,7 +168,7 @@ 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 += "\nTestsuite log (gdb.sum and gdb.log) URL(s):\n"
|
text += "\nTestsuite log (gdb.sum and gdb.log) URL(s):\n"
|
||||||
for ss in ss_list:
|
for ss in ss_list:
|
||||||
commit_id = get_builder_commit_id (name, ss.revision)
|
commit_id = get_builder_commit_id (name, ss.revision, ss.branch)
|
||||||
if commit_id:
|
if commit_id:
|
||||||
text += "\t<%s/%s/.git/tree/?id=%s>\n" % (git_url, name, commit_id)
|
text += "\t<%s/%s/.git/tree/?id=%s>\n" % (git_url, name, commit_id)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue