remove redundant log dumping (we send it as attachments)
This commit is contained in:
parent
b1bdad343d
commit
2be8b6fb41
@ -13,7 +13,6 @@ rm -f logs/*
|
||||
echo "Before"
|
||||
if ! ./node_modules/.bin/mocha --bail test/before.js > "logs/before.log" 2>&1; then
|
||||
echo "Before script failed"
|
||||
cat "logs/before.log"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -48,19 +47,8 @@ kill -9 "${tail_pid}"
|
||||
echo "After"
|
||||
if ! ./node_modules/.bin/mocha --bail test/after.js > "logs/after.js" 2>&1; then
|
||||
echo "After script failed"
|
||||
cat "logs/after.log"
|
||||
fi
|
||||
|
||||
# dump logs for email
|
||||
echo
|
||||
echo
|
||||
for log_file in "${test_logs[@]}"; do
|
||||
echo "=========== ${log_file} =============="
|
||||
cat "${log_file}"
|
||||
echo
|
||||
echo
|
||||
done
|
||||
|
||||
if [ "$fail" == "0" ]; then
|
||||
exit 0
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user