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_COLORS=true
|
||||
|
||||
readonly tests=(app-flow-test cloudron-user-test new-user-test cloudron-backup-test custom-domain-test)
|
||||
test_pids=()
|
||||
test_logs=()
|
||||
|
||||
@ -19,6 +18,7 @@ if ! ./node_modules/.bin/mocha --bail test/000-cleanup.js > "logs/000-cleanup.lo
|
||||
fi
|
||||
|
||||
# run tests
|
||||
readonly tests=(app-flow-test cloudron-user-test new-user-test cloudron-backup-test custom-domain-test)
|
||||
for t in "${tests[@]}"; do
|
||||
./node_modules/.bin/mocha --bail "test/${t}.js" > "logs/${t}.log" 2>&1 &
|
||||
test_pids+=("$!")
|
||||
@ -52,9 +52,9 @@ kill -9 "${tail_pid}"
|
||||
|
||||
echo
|
||||
echo
|
||||
for t in "${tests[@]}"; do
|
||||
for log_file in "${test_logs[@]}"; do
|
||||
echo "=========== ${t} =============="
|
||||
cat "logs/${t}.log"
|
||||
cat "${log_file}"
|
||||
echo
|
||||
echo
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user