[FIX] runbot: '' is not a valid module name

This commit is contained in:
Christophe Simonis 2015-07-13 10:15:27 +02:00
parent 0bea276f48
commit 97ad5e7746

View File

@ -639,7 +639,8 @@ class runbot_build(osv.osv):
modules_to_move = []
modules_to_test = ((build.modules or '') +
(build.branch_id.modules or '') +
(build.repo_id.modules or '')).split(',')
(build.repo_id.modules or ''))
modules_to_test = modules_to_test.split(',') if modules_to_test else []
_logger.debug("manual modules_to_test for build %s: %s", build.dest, modules_to_test)
if not has_server: