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
91e5e5e4
Commit
91e5e5e4
authored
4 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
add metrics file
parent
72b01d6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+2
-0
2 additions, 0 deletions
NEWS.rst
run_tests
+5
-0
5 additions, 0 deletions
run_tests
with
7 additions
and
0 deletions
NEWS.rst
+
2
−
0
View file @
91e5e5e4
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
Change failure and error detection in ``run_tests``.
Change failure and error detection in ``run_tests``.
run_tests: Add metrics when running in CI.
3.2
3.2
---
---
...
...
This diff is collapsed.
Click to expand it.
run_tests
+
5
−
0
View file @
91e5e5e4
...
@@ -61,6 +61,11 @@
...
@@ -61,6 +61,11 @@
then
then
tests_errors
=
0
tests_errors
=
0
fi
fi
# create a metrics file
if
[
-n
"
$CI
"
]
;
then
echo
"odoo_scripts_tests_ran
$tests_ran
\n
odoo_scripts_tests_failures
$tests_failures
\n
odoo_scripts_tests_error
$tests_error
"
>
metrics
fi
if
[
$ODOO_TYPE
!=
'odoo13'
]
;
if
[
$ODOO_TYPE
!=
'odoo13'
]
;
then
then
ok
=
$(
grep
' OK'
$logfile
-c
)
ok
=
$(
grep
' OK'
$logfile
-c
)
...
...
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