mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[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:
parent
12acfda83a
commit
cff0133e1a
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user