log more to identify what failed
This commit is contained in:
parent
228d9365a7
commit
0ad405d0cc
@ -20,9 +20,9 @@ fi
|
|||||||
|
|
||||||
# run tests
|
# run tests
|
||||||
for t in "${tests[@]}"; do
|
for t in "${tests[@]}"; do
|
||||||
echo "Starting test ${t}"
|
|
||||||
./node_modules/.bin/mocha "test/${t}.js" > "logs/${t}.log" 2>&1 &
|
./node_modules/.bin/mocha "test/${t}.js" > "logs/${t}.log" 2>&1 &
|
||||||
test_pids+=("$!")
|
test_pids+=("$!")
|
||||||
|
echo "Starting test ${t} with pid ${test_pids[-1]}"
|
||||||
test_logs+=("logs/${t}.log")
|
test_logs+=("logs/${t}.log")
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -40,7 +40,10 @@ tail_pid=$!
|
|||||||
fail=0
|
fail=0
|
||||||
echo "Waiting for jobs to finish"
|
echo "Waiting for jobs to finish"
|
||||||
for pid in "${test_pids[@]}"; do
|
for pid in "${test_pids[@]}"; do
|
||||||
wait $pid || let "fail+=1"
|
if ! wait $pid; then
|
||||||
|
let "fail+=1"
|
||||||
|
echo "$pid failed"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
kill -9 "${tail_pid}"
|
kill -9 "${tail_pid}"
|
||||||
|
Loading…
Reference in New Issue
Block a user