ForceScheduler: Check than one pass a list to the codebases parameter.
Fix the tests.
Merge benallard/buildbot:patch-1 (PR #1277)