Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
ee339eab9bb4
Commit
ee339eab9bb4
authored
1 year ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
Avoid using deprecated GREP_COLOR
parent
f5041bf7734a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+5
-0
5 additions, 0 deletions
NEWS.rst
run_tests
+7
-7
7 additions, 7 deletions
run_tests
with
12 additions
and
7 deletions
NEWS.rst
+
5
−
0
View file @
ee339eab
...
...
@@ -2,6 +2,11 @@
History
=======
21.2.3
------
run_tests: Avoid using deprecated grep environment variable.
21.2.2
------
...
...
This diff is collapsed.
Click to expand it.
run_tests
+
7
−
7
View file @
ee339eab
...
...
@@ -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_COLOR
S
=
'
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_COLOR
S
=
'
mt=
0;31'
grep
--color
=
always
"CRITICAL
\|
FAIL
\(
ED
\|
:
\)
"
$logfile
GREP_COLOR
S
=
'
mt=
0;31'
grep
--color
=
always
"ERROR [^ ]* openerp
\.
tools
\.
yaml_import:"
$logfile
GREP_COLOR
S
=
'
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_COLOR
S
=
'
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_COLOR
S
=
'
mt=
0;31'
grep
--color
=
always
"ERROR
\(
[[:alnum:]]
\|
_
\)
* .
\+\.
test_.
\+
ERROR:"
$logfile
GREP_COLOR
S
=
'
mt=
0;31'
grep
--color
=
always
"invalid module names, ignored"
$logfile
if
[[
-n
"
$import_errors
"
]]
;
then
echo
"
$import_errors
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment