[FIX] runbot: convert runbot_timeout to int

The cpu limit used in job_20 uses the runbot_timeout config_parameter
since b539112a7e. When measuring coverage, this parameter is multiplied
and leads to an error because the type of ir.config_parameter.get_param
method is str.

With this commit, the this value is converted into integer before usage
in job_20.
This commit is contained in:
Christophe Monniez 2019-05-12 19:29:07 +02:00
parent 12acfda83a
commit cff0133e1a

View File

@ -739,7 +739,7 @@ class runbot_build(models.Model):
@runbot_job('testing', 'running')
def _job_20_test_all(self, build, log_path):
cpu_limit = self.env['ir.config_parameter'].get_param('runbot.runbot_timeout', default=3600)
cpu_limit = int(self.env['ir.config_parameter'].get_param('runbot.runbot_timeout', default=3600))
self._local_pg_createdb("%s-all" % build.dest)
cmd, mods = build._cmd()
build._log('test_all', 'Start test all modules')