From 1d46bf9ff5061110ee0518413947be2631532f7b Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 2 May 2017 13:18:11 +0200 Subject: [PATCH] [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. --- runbot/runbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index 93e4addd..486c7291 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -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"]