Skip to content
Snippets Groups Projects
Commit 95640d167955 authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

do_tests: Forward additional arguments to the setup command (not tested)

parent 175b4b033cc2
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,10 @@
#
# - db host if any (will use socket if nothing is provided)
# - db user
# - other arguments are ignored
# - other arguments are forwarded as is to the setup command.
#
# Required:
#
# - access to pg database
#
# Version 2.6
......@@ -11,9 +11,10 @@
#
# Required:
#
# - access to pg database
#
# Version 2.6
here=$(dirname $0)
project_home=$(cd $here && cd .. && echo $PWD)
dbname=$(basename $project_home)_test
......@@ -69,6 +70,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 -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
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