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
e84b9fa38533
Commit
e84b9fa38533
authored
3 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
fix typo in variable names
parent
c0af24de2b20
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!82
🚑 fix typo in variable names
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_tests
+2
-2
2 additions, 2 deletions
run_tests
with
2 additions
and
2 deletions
run_tests
+
2
−
2
View file @
e84b9fa3
...
...
@@ -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"
...
...
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