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

:ambulance: fix test procedure

parent f29d5765379b
No related branches found
No related tags found
1 merge request!114🚑 fix test procedure
......@@ -2,6 +2,11 @@
History
=======
16.5.0
------
When running tests, only install modules that are not going to be tested. Modules to be tested will be installed during the tests.
16.4.0
------
......
......@@ -36,6 +36,5 @@
unaccent=False
fi
echo "$DEBUG Looking for modules to install"
modules_to_install=${ODOO_SCRIPTS_MODULE_LIST-$(read_odoo_scripts_expandable_configuration_key module_list)}
echo "$DEBUG module_list=$modules_to_install"
module_list=${ODOO_SCRIPTS_MODULE_LIST-$(read_odoo_scripts_expandable_configuration_key module_list)}
modules_to_tests=${ODOO_SCRIPTS_MODULE_LIST-$(read_odoo_scripts_expandable_configuration_key module_list_tests)}
......@@ -41,4 +40,8 @@
modules_to_tests=${ODOO_SCRIPTS_MODULE_LIST-$(read_odoo_scripts_expandable_configuration_key module_list_tests)}
# Install modules that will not be tested
modules_to_install=$($python -B -c "print(','.join(set('$module_list'.split(','))-set('$modules_to_tests'.split(','))))")
echo "$DEBUG module_list=$module_list"
echo "$DEBUG module_to_install=$modules_to_install"
echo "$DEBUG module_list_tests=$modules_to_tests"
if [[ -z "$modules_to_tests" ]];
then
......
......@@ -13,7 +13,7 @@
if [[ "$tested_modules" != "" ]];
then
update="-u $tested_modules"
update="-i $tested_modules"
fi
dbname=$1
if [[ -z "$dbname" ]];
......
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