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

:ambulance: run_tests: fix cat and avoid using another external tool

parent c0b3edd1cb7b
No related branches found
Tags 20.3.1
No related merge requests found
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
tests_errors=0 tests_errors=0
fi fi
import_errors=$(grep -P 'o(penerp|doo).(modules.module|[^ ]+): Can not `import [a-z0-9_]+`.' $logfile) import_errors=$(grep -P 'o(penerp|doo).(modules.module|[^ ]+): Can not `import [a-z0-9_]+`.' $logfile)
import_errors_number=$(cat $import_errors|wc -l) import_errors_number=$(grep -P 'o(penerp|doo).(modules.module|[^ ]+): Can not `import [a-z0-9_]+`.' $logfile -c)
if [[ "$import_errors_number" -ne 0 ]]; if [[ "$import_errors_number" -ne 0 ]];
then then
test_errors=$((test_errors+import_errors_number)) test_errors=$((test_errors+import_errors_number))
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
GREP_COLOR='0;31' grep --color=always "ERROR \([[:alnum:]]\|_\)* .\+\.test_.\+ ERROR:" $logfile GREP_COLOR='0;31' grep --color=always "ERROR \([[:alnum:]]\|_\)* .\+\.test_.\+ ERROR:" $logfile
if [[ -n "$import_errors" ]]; if [[ -n "$import_errors" ]];
then then
echo $import_errors echo "$import_errors"
fi fi
fi fi
......
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