@@ -88,7 +88,7 @@ failed_tests=() # array of failed tests
8888printf " Running $test_count tests in batches of $test_batch_size \n"
8989for i in " ${! tests[@]} " ; do
9090 test=${tests[$i]}
91- printf " Running test $(( i+ 1 )) /$test_count : $test \n"
91+ printf " * Running test $(( i+ 1 )) /$test_count : $test \n"
9292
9393 # execute the test in the background
9494 # redirect to a log file that buffers test output. since the tests will run in the background,
@@ -99,13 +99,13 @@ for i in "${!tests[@]}"; do
9999
100100 # if we reached the batch size, wait for all tests to finish
101101 if (( (($i + 1 ) % $test_batch_size == 0 ) || $i == $test_count - 1 )) ; then
102- printf " Waiting for batch to finish: $( IFS=' ' ; echo " ${pids[@]} " ) \n"
102+ printf " -> Waiting for batch to finish: $( IFS=' ' ; echo " ${pids[@]} " ) \n"
103103 # wait for running tests
104104 for j in " ${! test_ids[@]} " ; do
105105 i=${test_ids[$j]} # restore the global test's id
106106 pid=${pids[$j]} # restore the particular PID
107107 test=${tests[$i]} # restore the test name
108- printf " Waiting for $tests >> parallel_test_output-$i .txt (PID: $pid )\n"
108+ printf " - Waiting for $tests >> parallel_test_output-$i .txt (PID: $pid )\n"
109109 wait -n $pid
110110 # get the exit status of the test
111111 test_status=$?
@@ -118,6 +118,7 @@ for i in "${!tests[@]}"; do
118118 status=$test_status
119119 fi
120120 done
121+ printf " Starting over with a new batch...\n"
121122 test_ids=() # reset the test's id array
122123 pids=() # reset the PID array
123124 fi
0 commit comments