Browse Source

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
mission-4.1.18
Peter Barker 8 years ago
parent
commit
edf6964487
  1. 5
      Tools/autotest/autotest.py

5
Tools/autotest/autotest.py

@ -499,9 +499,10 @@ def run_tests(steps): @@ -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…
Cancel
Save