put cloudron-update-test logs in email
This commit is contained in:
parent
752faa7378
commit
b0579183a2
@ -5,7 +5,6 @@ set -eu
|
|||||||
export DEBUG=superagent-sync,e2e:*
|
export DEBUG=superagent-sync,e2e:*
|
||||||
export DEBUG_COLORS=true
|
export DEBUG_COLORS=true
|
||||||
|
|
||||||
readonly tests=(app-flow-test cloudron-user-test new-user-test cloudron-backup-test custom-domain-test)
|
|
||||||
test_pids=()
|
test_pids=()
|
||||||
test_logs=()
|
test_logs=()
|
||||||
|
|
||||||
@ -19,6 +18,7 @@ if ! ./node_modules/.bin/mocha --bail test/000-cleanup.js > "logs/000-cleanup.lo
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# run tests
|
# run tests
|
||||||
|
readonly tests=(app-flow-test cloudron-user-test new-user-test cloudron-backup-test custom-domain-test)
|
||||||
for t in "${tests[@]}"; do
|
for t in "${tests[@]}"; do
|
||||||
./node_modules/.bin/mocha --bail "test/${t}.js" > "logs/${t}.log" 2>&1 &
|
./node_modules/.bin/mocha --bail "test/${t}.js" > "logs/${t}.log" 2>&1 &
|
||||||
test_pids+=("$!")
|
test_pids+=("$!")
|
||||||
@ -52,9 +52,9 @@ kill -9 "${tail_pid}"
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
for t in "${tests[@]}"; do
|
for log_file in "${test_logs[@]}"; do
|
||||||
echo "=========== ${t} =============="
|
echo "=========== ${t} =============="
|
||||||
cat "logs/${t}.log"
|
cat "${log_file}"
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user