From 2c7feffd5eba7fb776a36d8d96faf05536c403b6 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 4 Feb 2019 15:11:06 +0100 Subject: [PATCH] [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. --- runbot/models/build.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/runbot/models/build.py b/runbot/models/build.py index cc02ece1..e060d70a 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -753,11 +753,8 @@ class runbot_build(models.Model): @runbot_job('testing') def _job_10_test_base(self, build, log_path): build._log('test_base', 'Start test base module') - # run base test self._local_pg_createdb("%s-base" % build.dest) 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'] if build.extra_params: cmd.extend(shlex.split(build.extra_params))