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
Merge requests
!82
Something went wrong on our end
fix typo in variable names
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix typo in variable names
topic/default/run-tests-odoo-15
into
branch/default
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Vincent Hatakeyama
requested to merge
topic/default/run-tests-odoo-15
into
branch/default
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
e84b9fa3
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
e84b9fa3
fix typo in variable names
· e84b9fa3
Vincent Hatakeyama
authored
3 years ago
run_tests
+
2
−
2
Options
@@ -54,7 +54,7 @@
# Valid with odoo 15
tests_ran
=
$(
grep
-P
'odoo\.tests\.runner: ([[:digit:]]+) failed, [[:digit:]]+ error\(s\) of \K[[:digit:]]+'
$logfile
-o
)
tests_failures
=
$(
grep
-P
'odoo\.tests\.runner: \K([[:digit:]]+)'
$logfile
-o
)
test_errors
=
$(
grep
-P
'odoo\.tests\.runner: ([[:digit:]]+) failed, \K[[:digit:]]+'
$logfile
-o
)
test
s
_errors
=
$(
grep
-P
'odoo\.tests\.runner: ([[:digit:]]+) failed, \K[[:digit:]]+'
$logfile
-o
)
else
# Valid with odoo 7, 11, 13
tests_ran
=
$(
grep
-P
'o(penerp|doo).(modules.module|[^ ]+): Ran \K([[:digit:]]+)'
$logfile
-o
| perl
-ne
'$sum += $_ } { print $sum'
)
@@ -90,7 +90,7 @@
fi
echo
''
echo
"
${
esc
}
[2m*****
${
esc
}
[22m
${
esc
}
[1mTest results
${
esc
}
[21m
${
esc
}
[2m*****
${
esc
}
[22m"
echo
"
$tests_failures
failed,
$tests_error
error(s) of
$tests_ran
tests"
echo
"
$tests_failures
failed,
$tests_error
s
error(s) of
$tests_ran
tests"
if
[
"
$ODOO_TYPE
"
=
'odoo7'
]
||
[
"
$ODOO_TYPE
"
=
'odoo8'
]
||
[
"
$ODOO_TYPE
"
=
'odoo9'
]
||
[
"
$ODOO_TYPE
"
=
'odoo10'
]
||
[
"
$ODOO_TYPE
"
=
'odoo11'
]
;
then
echo
"
$OK
$ok
modules passing"
Loading