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

:sparkles: tests: add option to indicate which language to install in the base

parent a21a61b1f09a
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,10 @@
c.has_section('odoo_scripts') and
c.has_option('odoo_scripts', 'image') and
c.get('odoo_scripts', 'image')) or os.path.basename(project_path)
languages = (
c.has_section('odoo_scripts') and
c.has_option('odoo_scripts', 'load-language') and
c.get('odoo_scripts', 'load-language')) or None
image = "%s/%s:latest" % (registry, project)
logging.debug("Docker image: %s", image)
......@@ -231,6 +235,9 @@
if nmspc.docker:
install_args = list(args)
install_args.append('--install-default')
if languages:
install_args.append('--load-language')
install_args.append(languages)
if install_log_level:
install_args.append('--log-level')
install_args.append(install_log_level)
......
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