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

:sparkles: Add detection of error of the type *invalid module names, ignored*

parent d59bfb5336b1
No related branches found
No related tags found
1 merge request!168✨ Add detection of error of the type *invalid module names, ignored*
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
ok=$(grep ' OK' $logfile -c) ok=$(grep ' OK' $logfile -c)
fi fi
# odoo 13 uses FAIL as the error message, in the form: FAIL: TestReorderingRule.test_reordering_rule # odoo 13 uses FAIL as the error message, in the form: FAIL: TestReorderingRule.test_reordering_rule
failed=$(grep ' FAIL\(ED\|:\)\| CRITICAL\| ERROR [^ ]* openerp.modules.module: Can not .import openerp\.addons\.\| TEST .* ERROR:\|Failed to initialize database\| ERROR \([[:alnum:]]\|_\)* .\+\.test_.\+ ERROR: ' $logfile -c) failed=$(grep ' FAIL\(ED\|:\)\| CRITICAL\| ERROR [^ ]* openerp.modules.module: Can not .import openerp\.addons\.\| TEST .* ERROR:\|Failed to initialize database\| ERROR \([[:alnum:]]\|_\)* .\+\.test_.\+ ERROR: \|invalid module names, ignored:' $logfile -c)
if [[ -n "$import_errors_number" ]]; if [[ -n "$import_errors_number" ]];
then then
failed=$((failed+$import_errors_number)) failed=$((failed+$import_errors_number))
...@@ -135,6 +135,7 @@ ...@@ -135,6 +135,7 @@
GREP_COLOR='0;31' grep --color=always "TEST .* ERROR:" $logfile GREP_COLOR='0;31' grep --color=always "TEST .* ERROR:" $logfile
# this one is for odoo 13 for tests that produces errors (failures are matched with FAIL: ) # this one is for odoo 13 for tests that produces errors (failures are matched with FAIL: )
GREP_COLOR='0;31' grep --color=always "ERROR \([[:alnum:]]\|_\)* .\+\.test_.\+ ERROR:" $logfile GREP_COLOR='0;31' grep --color=always "ERROR \([[:alnum:]]\|_\)* .\+\.test_.\+ ERROR:" $logfile
GREP_COLOR='0;31' grep --color=always "invalid module names, ignored" $logfile
if [[ -n "$import_errors" ]]; if [[ -n "$import_errors" ]];
then then
echo "$import_errors" echo "$import_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