# HG changeset patch # User Etienne Ferriere <etienne.ferriere@xcg-consulting.fr> # Date 1480501718 -3600 # Wed Nov 30 11:28:38 2016 +0100 # Node ID a2a701f3546669922ffb7a4b41c38ab75a07ba31 # Parent 7a11539b5bf45896d6f666ff116f4ee89b2b2f91 Added an option for Drone, to make possible to make it install modules by excluding the demo data, which can trigger bugs. diff --git a/do_tests b/do_tests --- a/do_tests +++ b/do_tests @@ -21,6 +21,7 @@ # 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')") 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())") +without_demo=$(python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print ','.join(c.get('odoo_scripts', 'without_demo', '').split())") # color stuff autoload colors @@ -70,6 +71,6 @@ fi echo ${YELLOW}INFO ${RESET} - Modules to install: $modules_to_install echo ${YELLOW}INFO ${RESET} - Install those modules -$here/start -i $modules_to_install -d $dbname --log-level=warn --max-cron=0 --stop-after-init $* $ODOO_HOST $ODOO_USER || { echo ${RED}FATAL${RESET} - Cannot install modules ; exit 1; } +$here/start -i $modules_to_install --without-demo=$without_demo -d $dbname --log-level=warn --max-cron=0 --stop-after-init $* $ODOO_HOST $ODOO_USER || { echo ${RED}FATAL${RESET} - Cannot install modules ; exit 1; } echo ${YELLOW}INFO ${RESET} - Run tests on $dbname $here/run_tests $dbname $ODOO_HOST $ODOO_USER