Commit 0cc4eb38 authored by Vincent Pelletier's avatar Vincent Pelletier

Always call release before thread exits.

parent 02bef475
......@@ -120,6 +120,7 @@ class TestSuite(object):
assert test not in self.running
self.running[test] = instance = self._pool.pop(0)
def run():
try:
self._instance.id = instance
if instance not in self._ready:
self._ready.add(instance)
......@@ -128,6 +129,7 @@ class TestSuite(object):
if on_stop is not None:
on_stop(status_dict)
self._pool.append(self.running.pop(test))
finally:
self.release()
thread = threading.Thread(target=run)
thread.setDaemon(True)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment