diff --git a/NEWS.rst b/NEWS.rst index f0fa41f58e8b9b411fb655525dfddea73d73c26b_TkVXUy5yc3Q=..47951639ec15ecd0811f2df01ff72a78d2a5eb83_TkVXUy5yc3Q= 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -2,6 +2,11 @@ History ======= +7.0.3 +----- + +Omit Odoo manifests from coverage. + 7.0.2 ----- diff --git a/run_tests b/run_tests index f0fa41f58e8b9b411fb655525dfddea73d73c26b_cnVuX3Rlc3Rz..47951639ec15ecd0811f2df01ff72a78d2a5eb83_cnVuX3Rlc3Rz 100755 --- a/run_tests +++ b/run_tests @@ -41,7 +41,7 @@ logfile=$(tempfile --suffix=.log) if [ "$ODOO_TYPE" = "odoo11" ] || [ "$ODOO_TYPE" = "odoo13" ]; then - export PRE_ODOO_BIN="python3-coverage run --source=$project_home " + export PRE_ODOO_BIN="python3-coverage run --omit=__manifest__.py --source=$project_home " fi # Catch both stdout & stderr here as Odoo 10 uses stderr, unlike previous Odoo versions. $here/start $update -d $dbname $db_user_param --test-enable $loglevel --max-cron=0 --stop-after-init $* 2>&1 | tee $logfile | sed -e 's/\(.*\) \(INFO\) \(.*\)/\o033[2m\1\o033[22m \o033[32m\o033[7m\2\o033[27m \3\o033[39m/' -e 's/\(.*\) \(DEBUG\) \(.*\)/\o033[2m\1\o033[22m \o033[33m\o033[7m\2\o033[27m \2\o033[39m/' -e 's/\(.*\) \(WARNING\) \(.*\)/\o033[2m\1\o033[22m \o033[33m\o033[7m\2\o033[27m \3\o033[39m/' -e 's/\(.*\) \(ERROR\) \(.*\)/\o033[2m\1\o033[22m \o033[31m\o033[7m\2\o033[27m \3\o033[0m/' -e 's/ FAILED/ \o033[41m\o033[97m\o033[1mFAILED\o033[0m/' -e 's/ FAIL\(.*\)/ \o033[41m\o033[97m\o033[1mFAIL\o033[49m\o033[31m\1\o033[0m/' -e 's/\(.*\) \(CRITICAL\) \(.*\)/\o033[2m\1\o033[22m \o033[33m\o033[7m\2\o033[27m \3\o033[39m/' -e 's/\(.*\) \(TEST\) \(.*\) \(ERROR\)\(.*\)/\o033[2m\1\o033[22m \o033[34m\o033[7m\2\o033[27m \3\o033[0m \o033[41m\o033[97m\o033[1m\4\o033[49m\o033[31m\5\o033[0m/' -e 's/\(.*\) \(TEST\) \(.*\) \(OK\)/\o033[2m\1\o033[22m \o033[34m\o033[7m\2\o033[27m \3\o033[0m \o033[32m\o033[7m\4\o033[27m\o033[39m/' -e 's/\(.*\) \(TEST\) \(.*\)/\o033[2m\1\o033[22m \o033[34m\o033[7m\2\o033[27m \3 \o033[0m/'