Skip to content
Snippets Groups Projects

:ambulance: fix typo in variable names

Merged Vincent Hatakeyama requested to merge topic/default/run-tests-odoo-15 into branch/default
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -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)
tests_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_errors 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