run cloudron-update-test in parallel as well
This commit is contained in:
parent
7935e79b07
commit
a5e38f3e7c
@ -18,7 +18,7 @@ if ! ./node_modules/.bin/mocha --bail test/before.js > "logs/before.log" 2>&1; t
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# run tests
|
# run tests
|
||||||
readonly tests=(app-flow-test cloudron-user-test new-user-test cloudron-backup-test custom-domain-test)
|
readonly tests=(app-flow-test cloudron-user-test new-user-test cloudron-backup-test custom-domain-test cloudron-update-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+=("$!")
|
||||||
@ -26,13 +26,6 @@ for t in "${tests[@]}"; do
|
|||||||
test_logs+=("logs/${t}.log")
|
test_logs+=("logs/${t}.log")
|
||||||
done
|
done
|
||||||
|
|
||||||
# update test modifies release file, so run it separately
|
|
||||||
sleep 20 # wait for the other tests to have created the cloudron
|
|
||||||
./node_modules/.bin/mocha --bail "test/cloudron-update-test.js" > "logs/cloudron-update-test.log" 2>&1 &
|
|
||||||
test_pids+=("$!")
|
|
||||||
echo "Starting test cloudron-update-test with pid ${test_pids[-1]}"
|
|
||||||
test_logs+=("logs/cloudron-update-test.log")
|
|
||||||
|
|
||||||
# stream all the logs (to stderr so that it's not in email but in deploy logs)
|
# 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)
|
sleep 10 # wait for cloudron-update-test.log to get created (since it's a background subshell)
|
||||||
tail -f ${test_logs[*]} >&2 &
|
tail -f ${test_logs[*]} >&2 &
|
||||||
|
Loading…
Reference in New Issue
Block a user