diff --git a/parallel_test.sh b/parallel_test.sh index 4cd22d3..4e714e5 100755 --- a/parallel_test.sh +++ b/parallel_test.sh @@ -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