remove deploy logs support

the logs are mostly pointless (because of all '.')
This commit is contained in:
Girish Ramakrishnan 2016-09-21 11:53:35 -07:00
parent 2ceda75d5d
commit 90333cc98a

View File

@ -6,7 +6,6 @@ export DEBUG=superagent-sync,e2e:*,imap-probe
export DEBUG_COLORS=true
test_pids=()
test_logs=()
# before
rm -f logs/*
@ -23,14 +22,8 @@ for t in "${tests[@]}"; do
EXEC_LOG_FILE="logs/${t}-cloudron-cli.log" ./node_modules/.bin/mocha --bail "test/${t}.js" > "logs/${t}.log" 2>&1 &
test_pids+=("$!")
echo "Starting test ${t} with pid ${test_pids[-1]}"
test_logs+=("logs/${t}.log")
done
# stream all the logs (to stderr so that it's not in email but in deploy logs)
sleep 10 # wait for cloudron-update-test.log to get created (since it's a background subshell)
tail -f ${test_logs[*]} >&2 &
tail_pid=$!
# wait for tests to finish
fail=0
echo "Waiting for jobs to finish"
@ -41,8 +34,6 @@ for pid in "${test_pids[@]}"; do
fi
done
kill -9 "${tail_pid}"
# after
echo "After"
if ! ./node_modules/.bin/mocha --bail test/after.js > "logs/after.js" 2>&1; then