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:
parent
36ea946cf5
commit
edf6964487
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user