# HG changeset patch # User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr> # Date 1675679427 -3600 # Mon Feb 06 11:30:27 2023 +0100 # Node ID 21b2bce8a97302448fc6e6ab6d83cd825c2fdbf0 # Parent bbb92b95b222aa6416ae95f1c1174ca28ee8d9d6 🚑 odoo 16 run_tests: fix coverage command diff --git a/NEWS.rst b/NEWS.rst --- a/NEWS.rst +++ b/NEWS.rst @@ -2,6 +2,11 @@ History ======= +18.0.1 +------ + +Fix coverage in Odoo 16 image. + 18.0.0 ------ diff --git a/run_tests b/run_tests --- a/run_tests +++ b/run_tests @@ -39,7 +39,11 @@ loglevel="--log-level=test" fi logfile=$(tempfile --suffix=.log) -if [ "$ODOO_TYPE" = "odoo11" ] || [ "$ODOO_TYPE" = "odoo13" ] || [ "$ODOO_TYPE" = "odoo15" ] || [ "$ODOO_TYPE" = "odoo16" ]; +if [ "$ODOO_TYPE" = "odoo16" ]; +then + export PRE_ODOO_BIN="coverage run --omit=__manifest__.py --source=$project_home " +fi +if [ "$ODOO_TYPE" = "odoo11" ] || [ "$ODOO_TYPE" = "odoo13" ] || [ "$ODOO_TYPE" = "odoo15" ] ; then export PRE_ODOO_BIN="python3-coverage run --omit=__manifest__.py --source=$project_home " fi