Skip to content
Snippets Groups Projects
Commit 0ff120fb5d82 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:pencil: avoid setting odoo 7 options on non odoo 7

parent 7c422f7cf045
No related branches found
No related tags found
No related merge requests found
......@@ -238,10 +238,11 @@
if nmspc.test:
arg.append('-u %s' % nmspc.test)
arg.append('--test-enable')
arg.append('--log-level=test')
if odoo_type == 'odoo7':
arg.append('--log-level=test')
arg.append('--stop-after-init')
if nmspc.test_default:
test_modules = c.get('odoo_scripts', 'module_list_tests').split() or []
str_modules = ','.join(test_modules)
arg.append('-u %s' % str_modules)
arg.append('--test-enable')
......@@ -242,10 +243,11 @@
arg.append('--stop-after-init')
if nmspc.test_default:
test_modules = c.get('odoo_scripts', 'module_list_tests').split() or []
str_modules = ','.join(test_modules)
arg.append('-u %s' % str_modules)
arg.append('--test-enable')
arg.append('--log-level=test')
if odoo_type == 'odoo7':
arg.append('--log-level=test')
arg.append('--stop-after-init')
if nmspc.database:
arg.append('-d %s' % nmspc.database)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment