diff --git a/scripts/test.sh b/scripts/test.sh index 43b6c52a01..0d3bc32537 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -83,10 +83,10 @@ all_directories+=$'\n' all_directories+=$(discover_directories "$TESTS_DIR") # Sort, filter, and generate JSON objects -echo "[" -echo "$all_directories" | base64 | sort | while read -r dir; do +echo "[" | base64 +echo "$all_directories" | sort | while read -r dir; do if ! is_excluded "$dir"; then - generate_json "$dir" + generate_json "$dir" | base64 fi done | sed '$ s/,$//' # Remove the last comma -echo "]" +echo "]" | base64