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

:pencil: add default value to tests ran when there is no tests

parent d32f7f1b1f76
No related branches found
No related tags found
1 merge request!88📝 add default value to tests ran when there is no tests
......@@ -58,6 +58,10 @@
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')
if [ -z "$tests_ran" ];
then
tests_ran=0
fi
tests_failures=$(grep -P 'o(penerp|doo).(modules.module|[^ ]+): Module [a-zA-Z0-9._-]+: \K([[:digit:]]+)' $logfile -o | perl -ne '$sum += $_ } { print $sum')
# that might be doable in the perl above
if [ -z "$tests_failures" ];
......
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