Make try-lockfile name be like the root message id

This commit is contained in:
Sergio Durigan Junior 2017-09-12 17:13:35 -04:00
parent 447c084f3b
commit cbe3b6a13e

View file

@ -142,8 +142,8 @@ import smtplib
import socket
from email.mime.text import MIMEText
def make_try_build_lockfile_name (rev):
return "/tmp/gdb-buildbot-%s-try.lock" % rev
def make_try_build_lockfile_name (msgid):
return "/tmp/gdb-buildbot-%s-try.lock" % msgid
def SendRootMessageGDBTesters (branch, change, rev,
istrysched = False,
@ -153,7 +153,7 @@ def SendRootMessageGDBTesters (branch, change, rev,
global GDB_MAIL_TO, GDB_MAIL_FROM
if istrysched:
f = make_try_build_lockfile_name (rev)
f = make_try_build_lockfile_name (try_msgid)
else:
f = "/tmp/gdb-buildbot-%s.lock" % rev