Tools: autotest: emit lockfile name in case of contention

For those of us who want to remove the lockfile and can
never remember where it lives
This commit is contained in:
Peter Barker 2016-09-23 16:55:52 +10:00
parent 36ea946cf5
commit edf6964487

View File

@ -499,9 +499,10 @@ def run_tests(steps):
util.mkdir_p(util.reltopdir('../buildlogs'))
lck = util.lock_file(util.reltopdir('../buildlogs/autotest.lck'))
lckfile = util.reltopdir('../buildlogs/autotest.lck')
lck = util.lock_file(lckfile)
if lck is None:
print("autotest is locked - exiting")
print("autotest is locked - exiting. lckfile=(%s)" % (lckfile,))
sys.exit(0)
atexit.register(util.pexpect_close_all)