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

do_tests: default to odoo for user if there is no sample configuration file for odoo

parent e7f786bd134a
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,12 @@
project_home=$(cd $here && cd .. && echo $PWD)
dbname=$(basename $project_home)_test
# this is the same value as conf/dev/odoo.conf
dbowner=$(python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/conf/dev/odoo.conf') ; print c.get('options', 'db_user')")
if [[ -e "${project_home}/conf/dev/odoo.conf" ]];
then
dbowner=$(python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/conf/dev/odoo.conf') ; print c.get('options', 'db_user')")
else
dbowner=odoo
fi
modules_to_install=$(python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print ','.join(c.get('odoo_scripts', 'module_list', '').split())")
# color stuff
......
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