Add convenient logging when failing

This commit is contained in:
Jean-Baptiste Bellet
2022-10-31 16:10:48 +01:00
parent 9ba0695652
commit b93f6dfdad

View File

@@ -10,7 +10,12 @@
function finish() {
echo "Exiting..."
killall yes
exit 0
if [ "$pass_rate" -lt 100 ]; then
echo "Check tmp/rspec.log for details."
exit 1
else
exit 0
fi
}
trap finish SIGINT