diff --git a/NEWS.rst b/NEWS.rst index f29d5765379bab7a4a83320f7cbd4527ea7d81bb_TkVXUy5yc3Q=..235a970e6f555922bcee1b82a92babbdc5b2b631_TkVXUy5yc3Q= 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -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 ------ diff --git a/do_tests b/do_tests index f29d5765379bab7a4a83320f7cbd4527ea7d81bb_ZG9fdGVzdHM=..235a970e6f555922bcee1b82a92babbdc5b2b631_ZG9fdGVzdHM= 100755 --- a/do_tests +++ b/do_tests @@ -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 diff --git a/run_tests b/run_tests index f29d5765379bab7a4a83320f7cbd4527ea7d81bb_cnVuX3Rlc3Rz..235a970e6f555922bcee1b82a92babbdc5b2b631_cnVuX3Rlc3Rz 100755 --- a/run_tests +++ b/run_tests @@ -13,7 +13,7 @@ if [[ "$tested_modules" != "" ]]; then - update="-u $tested_modules" + update="-i $tested_modules" fi dbname=$1 if [[ -z "$dbname" ]];