# HG changeset patch
# User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr>
# Date 1643903454 -3600
#      Thu Feb 03 16:50:54 2022 +0100
# Node ID e84b9fa385336b61f29529355932d7fe20eae5f4
# Parent  c0af24de2b208309c26a3bc14818b20fea1f6f85
🚑 fix typo in variable names

diff --git a/run_tests b/run_tests
--- 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"