diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-04-05 18:59:00 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-04-05 18:59:00 +0200 |
| commit | 7f5ca1d94a00faa7500e53cc9b2f3ee3e911eed4 (patch) | |
| tree | f2058befe5339238171fc37a05a04359a8ff7e32 /openerp/modules/loading.py | |
| parent | df45a3128dd347acbccf00ba293bf0bbb9995708 (diff) | |
| parent | ceb87b78f09e0430fe0e8279383e85c164a43270 (diff) | |
[MERGE] forward port of branch 8.0 up to ceb87b7
Diffstat (limited to 'openerp/modules/loading.py')
| -rw-r--r-- | openerp/modules/loading.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openerp/modules/loading.py b/openerp/modules/loading.py index f0f8da49fe6..62c773935e0 100644 --- a/openerp/modules/loading.py +++ b/openerp/modules/loading.py @@ -452,7 +452,10 @@ def load_modules(db, force_demo=False, status=None, update_module=False): t0 = time.time() t0_sql = openerp.sql_db.sql_counter if openerp.tools.config['test_enable']: - cr.execute("SELECT name FROM ir_module_module WHERE state='installed'") + if update_module: + cr.execute("SELECT name FROM ir_module_module WHERE state='installed' and name = ANY(%s)", (processed_modules,)) + else: + cr.execute("SELECT name FROM ir_module_module WHERE state='installed'") for module_name in cr.fetchall(): report.record_result(openerp.modules.module.run_unit_tests(module_name[0], cr.dbname, position=runs_post_install)) _logger.log(25, "All post-tested in %.2fs, %s queries", time.time() - t0, openerp.sql_db.sql_counter - t0_sql) |
