Skip to content

Commit 5f45fdd

Browse files
committed
Remove newlines between test filenames
1 parent 625f362 commit 5f45fdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/ci/circle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ find_tests() {
251251
# $2 - node index
252252
allocate_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
262262
run_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

0 commit comments

Comments
 (0)