mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 05:15:45 +07:00
[IMP] runbot: avoid running test when installing base
When running the _job_10 method, a database is created with base module alone. Tests are enabled during this job. Those tests are run again with the _job_20 method. Moreover, even if the tests fail during _job_10, they are not taken into account for the final result. The _job_10 method duration is approximately 4 min. With this commit, the tests are not enabled during _job_10.
This commit is contained in:
parent
809f5639c2
commit
2c7feffd5e
@ -753,11 +753,8 @@ class runbot_build(models.Model):
|
|||||||
@runbot_job('testing')
|
@runbot_job('testing')
|
||||||
def _job_10_test_base(self, build, log_path):
|
def _job_10_test_base(self, build, log_path):
|
||||||
build._log('test_base', 'Start test base module')
|
build._log('test_base', 'Start test base module')
|
||||||
# run base test
|
|
||||||
self._local_pg_createdb("%s-base" % build.dest)
|
self._local_pg_createdb("%s-base" % build.dest)
|
||||||
cmd, mods = build._cmd()
|
cmd, mods = build._cmd()
|
||||||
if grep(build._server("tools/config.py"), "test-enable"):
|
|
||||||
cmd.append("--test-enable")
|
|
||||||
cmd += ['-d', '%s-base' % build.dest, '-i', 'base', '--stop-after-init', '--log-level=test', '--max-cron-threads=0']
|
cmd += ['-d', '%s-base' % build.dest, '-i', 'base', '--stop-after-init', '--log-level=test', '--max-cron-threads=0']
|
||||||
if build.extra_params:
|
if build.extra_params:
|
||||||
cmd.extend(shlex.split(build.extra_params))
|
cmd.extend(shlex.split(build.extra_params))
|
||||||
|
Loading…
Reference in New Issue
Block a user