Skip to content
Snippets Groups Projects
Commit 3963bcdd 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 93f38ec5
No related branches found
No related tags found
No related merge requests found
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
# this is the same value as conf/drone/odoo.conf # this is the same value as conf/drone/odoo.conf
if [[ -e "${project_home}/conf/drone/odoo.conf" ]]; if [[ -e "${project_home}/conf/drone/odoo.conf" ]];
then 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)") 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 # this is the same value as conf/dev/odoo.conf
elif [[ -e "${project_home}/conf/dev/odoo.conf" ]]; elif [[ -e "${project_home}/conf/dev/odoo.conf" ]];
then then
...@@ -29,8 +29,8 @@ ...@@ -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)") 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 # this is the same value as conf/dev/odoo.conf
elif [[ -e "${project_home}/conf/dev/odoo.conf" ]]; elif [[ -e "${project_home}/conf/dev/odoo.conf" ]];
then 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)") 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 else
dbowner=odoo dbowner=odoo
......
...@@ -146,6 +146,13 @@ ...@@ -146,6 +146,13 @@
help="log handler [default: %(default)s]", help="log handler [default: %(default)s]",
default=None, 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 # TODO options
# - db host/uri (include socket) # - db host/uri (include socket)
# - db user for creation/remove # - db user for creation/remove
...@@ -278,6 +285,9 @@ ...@@ -278,6 +285,9 @@
args.append(nmspc.log_handler) args.append(nmspc.log_handler)
if start_postgresql: if start_postgresql:
args.append('--start-postgresql') args.append('--start-postgresql')
if nmspc.LOAD_LANGUAGE:
args.append('--load-language')
args.append(nmspc.LOAD_LANGUAGE)
if recreate_db: if recreate_db:
if start_postgresql: if start_postgresql:
docker_client = docker_api(base_url='unix://var/run/docker.sock') 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