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

:pencil: do_tests: stop tests if there is no module to test

parent 3dde52d26cb5
No related branches found
No related tags found
1 merge request!107📝 do_tests: stop tests if there is no module to test
......@@ -2,6 +2,11 @@
History
=======
16.1.0
------
Shell script: avoid running tests if there is no module to test.
16.0.0
------
......
......@@ -37,7 +37,14 @@
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 Modules to install: $modules_to_install"
echo "$DEBUG module_list=$modules_to_install"
modules_to_tests=${ODOO_SCRIPTS_MODULE_LIST-$(read_odoo_scripts_expandable_configuration_key module_list_tests)}
echo "$DEBUG module_list_tests=$modules_to_tests"
if [[ -z "$modules_to_tests" ]];
then
echo "$INFO No module to tests"
exit 0
fi
echo "$DEBUG Looking value of fail_on_errors"
fail_on_errors=${ODOO_SCRIPTS_FAIL_ON_ERRORS-$(read_odoo_scripts_configuration_key fail_on_errors True)}
echo "$DEBUG fail_on_errors=$fail_on_errors"
......
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