提交 790b51b0 authored 作者: Frederic's avatar Frederic

fix lock clean up code when there is a bug. This could help following tests to…

fix lock clean up code when there is a bug. This could help following tests to restart in a good state.
上级 eeb09122
......@@ -320,7 +320,7 @@ def refresh_lock(lock_file):
# from failing, we release the lock, but as there is a
# problem, we still keep the original exception.
# This way, only 1 test would fail.
while get_lock.lock_is_enabled:
while get_lock.n_lock > 0:
release_lock()
_logger.warn('Refreshing lock failed, we release the'
' lock before raising again the exception')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论