[FIX] dont run cron, improve log display

Dont run cron while testing this was causing apiculture to be slow.
This commit is contained in:
Antony Lesuisse 2014-06-29 17:47:00 +02:00
parent 0ce2bb3485
commit aa55d36911
2 changed files with 5 additions and 4 deletions

View File

@ -623,7 +623,7 @@ class runbot_build(osv.osv):
cmd, mods = build.cmd()
if grep(build.path("openerp/tools/config.py"), "test-enable"):
cmd.append("--test-enable")
cmd += ['-d', '%s-base' % build.dest, '-i', 'base', '--stop-after-init', '--log-level=test']
cmd += ['-d', '%s-base' % build.dest, '-i', 'base', '--stop-after-init', '--log-level=test', '--max-cron-threads=0']
return self.spawn(cmd, lock_path, log_path, cpu_limit=300)
def job_20_test_all(self, cr, uid, build, lock_path, log_path):
@ -632,7 +632,7 @@ class runbot_build(osv.osv):
cmd, mods = build.cmd()
if grep(build.path("openerp/tools/config.py"), "test-enable"):
cmd.append("--test-enable")
cmd += ['-d', '%s-all' % build.dest, '-i', mods, '--stop-after-init', '--log-level=test']
cmd += ['-d', '%s-all' % build.dest, '-i', mods, '--stop-after-init', '--log-level=test', '--max-cron-threads=0']
# 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)

View File

@ -468,10 +468,11 @@
<td><b t-esc="l.level"/></td>
<td><t t-esc="l.type"/></td>
<td>
<t t-esc="l.name"/>:<t t-esc="l.line"/> <t t-esc="l.func"/> <a t-attf-href="#">File <i class="fa fa-external-link"/></a>
<a t-attf-href="https://{{build.repo_id.base}}/blob/{{build.name}}/{{l.path}}#L{{l.line}}"><t t-esc="l.name"/>:<t t-esc="l.line"/></a> <t t-esc="l.func"/>
<t t-if="'\n' not in l.message" t-esc="l.message"/>
<pre t-if="'\n' in l.message" style="margin:0;padding:0; border: none;"><t t-esc="l.message"/></pre>
</td>
</tr>
<tr><td colspan="4"><pre style="margin:0;padding:0; border: none;"><t t-esc="l.message"/></pre></td></tr>
</t>
</table>
</div>