mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: when running via coverage, skip sys.executable in command line
This commit is contained in:
parent
9282b10034
commit
33584cea10
@ -985,7 +985,7 @@ class runbot_build(osv.osv):
|
||||
]
|
||||
bad_modules = set(available_modules) - set((mods or '').split(','))
|
||||
omit = ['--omit', ','.join(build.server('addons', m) for m in bad_modules)] if bad_modules else []
|
||||
cmd = ['coverage', 'run', '--branch', '--source', build.server()] + omit + cmd
|
||||
cmd = ['coverage', 'run', '--branch', '--source', build.server()] + omit + cmd[1:]
|
||||
# reset job_start to an accurate job_20 job_time
|
||||
build.write({'job_start': now()})
|
||||
return self.spawn(cmd, lock_path, log_path, cpu_limit=2100, env=env)
|
||||
|
Loading…
Reference in New Issue
Block a user