diff --git a/run_tests b/run_tests index c0af24de2b208309c26a3bc14818b20fea1f6f85_cnVuX3Rlc3Rz..e84b9fa385336b61f29529355932d7fe20eae5f4_cnVuX3Rlc3Rz 100755 --- a/run_tests +++ b/run_tests @@ -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"