diff --git a/NEWS.rst b/NEWS.rst index bbb92b95b222aa6416ae95f1c1174ca28ee8d9d6_TkVXUy5yc3Q=..21b2bce8a97302448fc6e6ab6d83cd825c2fdbf0_TkVXUy5yc3Q= 100644 --- 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 index bbb92b95b222aa6416ae95f1c1174ca28ee8d9d6_cnVuX3Rlc3Rz..21b2bce8a97302448fc6e6ab6d83cd825c2fdbf0_cnVuX3Rlc3Rz 100755 --- 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