mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Add convenient logging when failing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user