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

[run_tests] also detect yaml tests failures

parent 9187c1043de4
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,11 @@
ok=$(grep ' OK' $logfile -c)
# TODO detect yaml tests failures
failed=$(grep ' FAILED' $logfile -c)
if [[ $failed -eq 0 ]];
then
# simple way to detect yaml failure
failed=$(grep 'openerp.modules.loading: At least one test failed when loading the modules.' $logfile -c)
fi
echo ''
echo '\e[2m*****\e[22m \e[1mTest results\e[21m \e[2m*****\e[22m'
echo "$ok modules passing, $failed modules failing"
......@@ -52,6 +57,7 @@
# Highlight the failure matches in red (31).
GREP_COLOR='0;31' grep --color=always "FAILED\|FAIL:" $logfile
GREP_COLOR='0;31' grep --color=always "ERROR [^ ]* openerp\.tools\.yaml_import:" $logfile
fi
echo ''
......
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