Browse Source

Merge "Fix test race with paused build"

changes/03/707903/1
Zuul 1 week ago
parent
commit
418a144e93
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      tests/base.py

+ 5
- 4
tests/base.py View File

@@ -3952,11 +3952,12 @@ class ZuulTestCase(BaseTestCase):
worker_build = self.executor_server.job_builds.get(
server_job.unique.decode('utf8'))
if worker_build:
if worker_build.isWaiting() or worker_build.paused:
if build.paused:
continue
else:
self.log.debug("%s is running" % worker_build)
return False
if worker_build.isWaiting():
continue
self.log.debug("%s is running" % worker_build)
return False
else:
self.log.debug("%s is unassigned" % server_job)
return False

Loading…
Cancel
Save