[FIX] runbot: stop wasting a cycle for coverage check

Build jobs that return a -2 PID are considered immediately done and the
next job is started without waiting for a cron cycle.
This commit is contained in:
Olivier Dony 2017-05-02 13:18:11 +02:00
parent 63b997a4ed
commit 1d46bf9ff5

View File

@ -1015,7 +1015,7 @@ class runbot_build(osv.osv):
def _job_21_coverage(self, cr, uid, build, lock_path, log_path):
if not build.branch_id.coverage:
return
return -2
cov_path = build._path('coverage')
mkdirs([cov_path])
cmd = ["coverage", "html", "-d", cov_path, "--ignore-errors"]