File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ find_tests() {
251251# $2 - node index
252252allocate_tests () {
253253 # Keep those tests (rows) where the VM index equals the modulo:
254- local tests=$( find_tests | sort | awk " NR % $1 == $2 " )
254+ local tests=$( find_tests | sort | awk -v " n= $1 " -v " i= $2 " ' {if ( NR % n == i) printf "%s ", $0} END {print ""} ' )
255255 echo " ${tests} "
256256}
257257
@@ -261,7 +261,6 @@ allocate_tests() {
261261# $2 - log file
262262run_tests () {
263263 echo ' Running tests...' >&2
264- echo " $1 "
265264 # make TESTS="$1" test-xunit >> "$2" 2>&1
266265 make TESTS=" $1 " test-xunit
267266 if [[ " $? " -ne 0 ]]; then
@@ -280,7 +279,6 @@ main() {
280279 local len
281280 local i
282281
283-
284282 TASKS=(check_deps lint)
285283 len=" ${# TASKS[@]} "
286284
@@ -325,6 +323,8 @@ main() {
325323
326324 echo ' Allocating tests...' >&2
327325 tests=$( allocate_tests " ${total_nodes} " " ${index} " )
326+ echo " ${tests} " >&2
327+
328328 run_tests " ${tests} " " ${tests_log_file} "
329329 if [[ " $? " -ne 0 ]]; then
330330 on_error 1
You can’t perform that action at this time.
0 commit comments