Tests: add an extra debug line when stalled

When Zuul is stuck, add another debug line indicating the potential
cause.

Change-Id: Ie16d95fb248ae5573e257bdf05514b7b58520f77
This commit is contained in:
James E. Blair 2016-08-10 15:32:19 -07:00
parent 08d199963f
commit f3156c9154
1 changed files with 2 additions and 0 deletions

View File

@ -1391,6 +1391,8 @@ class ZuulTestCase(BaseTestCase):
self.log.debug(" %s: %s" % (queue, queue.empty()))
self.log.debug("All builds waiting: %s" %
(self.areAllBuildsWaiting(),))
self.log.debug("All builds reported: %s" %
(self.haveAllBuildsReported(),))
raise Exception("Timeout waiting for Zuul to settle")
# Make sure no new events show up while we're checking