builders: Fix reversed branchname matching logic

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2024-10-09 23:50:54 +01:00
parent 0094a385c8
commit 8c7217134a

View File

@ -160,7 +160,7 @@ def nextWorker(bldr, workers, buildrequest):
branch = buildrequest.sources[''].branch
if branch and "bringup" not in bldr.name:
for branchname in config.workers_prev_releases:
if branch in branchname:
if branchname in branch:
possible_workers = []
for w in workers:
if w.worker.workername.startswith(config.workers_prev_releases[branchname]):