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

:pencil: Avoid using deprecated GREP_COLOR

parent f5041bf7734a
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,11 @@
History
=======
21.2.3
------
run_tests: Avoid using deprecated grep environment variable.
21.2.2
------
......
......@@ -128,7 +128,7 @@
echo -e "${GREEN}Passes${RESET}:"
# Highlight the "OK"s in green (32).
GREP_COLOR='0;32' grep --color=always ' OK' $logfile || true
GREP_COLORS='mt=0;32' grep --color=always ' OK' $logfile || true
fi
if [[ $failed -gt 0 ]];
......@@ -136,7 +136,7 @@
echo -e "${RED}Failures${RESET}:"
# Highlight the failure matches in red (31).
GREP_COLOR='0;31' grep --color=always "CRITICAL\|FAIL\(ED\|:\)" $logfile
GREP_COLOR='0;31' grep --color=always "ERROR [^ ]* openerp\.tools\.yaml_import:" $logfile
GREP_COLOR='0;31' grep --color=always "ERROR [^ ]* openerp.modules.module: Can not \`import openerp\.addons\..*\`" $logfile
GREP_COLORS='mt=0;31' grep --color=always "CRITICAL\|FAIL\(ED\|:\)" $logfile
GREP_COLORS='mt=0;31' grep --color=always "ERROR [^ ]* openerp\.tools\.yaml_import:" $logfile
GREP_COLORS='mt=0;31' grep --color=always "ERROR [^ ]* openerp.modules.module: Can not \`import openerp\.addons\..*\`" $logfile
# this one is for odoo 7
......@@ -142,3 +142,3 @@
# this one is for odoo 7
GREP_COLOR='0;31' grep --color=always "TEST .* ERROR:" $logfile
GREP_COLORS='mt=0;31' grep --color=always "TEST .* ERROR:" $logfile
# this one is for odoo 13 for tests that produces errors (failures are matched with FAIL: )
......@@ -144,6 +144,6 @@
# 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 "invalid module names, ignored" $logfile
GREP_COLORS='mt=0;31' grep --color=always "ERROR \([[:alnum:]]\|_\)* .\+\.test_.\+ ERROR:" $logfile
GREP_COLORS='mt=0;31' grep --color=always "invalid module names, ignored" $logfile
if [[ -n "$import_errors" ]];
then
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