Skip to content
Snippets Groups Projects
Commit 3963bcdd47d8 authored by Etienne Ferriere's avatar Etienne Ferriere
Browse files

Corrected two typing errors in the program executing the unit tests.

Added an additional option to this script.
parent 93f38ec588fb
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,8 @@
# this is the same value as conf/drone/odoo.conf
if [[ -e "${project_home}/conf/drone/odoo.conf" ]];
then
dbowner=$($python -B -c "from six.moves import configparser ; c = configParser.ConfigParser() ; c.read('${project_home}/conf/drone/odoo.conf') ; print(c.get('options', 'db_user'))")
dbowner=$($python -B -c "from six.moves import configparser ; c = configparser.ConfigParser() ; c.read('${project_home}/conf/drone/odoo.conf') ; print(c.get('options', 'db_user'))")
unaccent=$($python -B -c "from six.moves import configparser ; c = configparser.ConfigParser() ; c.read('${project_home}/conf/drone/odoo.conf') ; print(c.get('options', 'unaccent') if c.has_option('options', 'unaccent') else False)")
# this is the same value as conf/dev/odoo.conf
elif [[ -e "${project_home}/conf/dev/odoo.conf" ]];
then
......@@ -29,8 +29,8 @@
unaccent=$($python -B -c "from six.moves import configparser ; c = configparser.ConfigParser() ; c.read('${project_home}/conf/drone/odoo.conf') ; print(c.get('options', 'unaccent') if c.has_option('options', 'unaccent') else False)")
# this is the same value as conf/dev/odoo.conf
elif [[ -e "${project_home}/conf/dev/odoo.conf" ]];
then
dbowner=$($python -B -c "from six.moves import configparser ; c = configParser.ConfigParser() ; c.read('${project_home}/conf/dev/odoo.conf') ; print(c.get('options', 'db_user'))")
dbowner=$($python -B -c "from six.moves import configparser ; c = configparser.ConfigParser() ; c.read('${project_home}/conf/dev/odoo.conf') ; print(c.get('options', 'db_user'))")
unaccent=$($python -B -c "from six.moves import configparser ; c = configparser.ConfigParser() ; c.read('${project_home}/conf/dev/odoo.conf') ; print(c.get('options', 'unaccent') if c.has_option('options', 'unaccent') else False)")
else
dbowner=odoo
......
......@@ -146,6 +146,13 @@
help="log handler [default: %(default)s]",
default=None,
)
parser.add_argument(
'--load-language',
help="specifies the languages for the translations you want to be"
" loaded",
default=None,
dest='LOAD_LANGUAGE',
)
# TODO options
# - db host/uri (include socket)
# - db user for creation/remove
......@@ -278,6 +285,9 @@
args.append(nmspc.log_handler)
if start_postgresql:
args.append('--start-postgresql')
if nmspc.LOAD_LANGUAGE:
args.append('--load-language')
args.append(nmspc.LOAD_LANGUAGE)
if recreate_db:
if start_postgresql:
docker_client = docker_api(base_url='unix://var/run/docker.sock')
......
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