From 35a4b4c7edc06747d578eb8336be260f864b831c Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 27 Aug 2024 12:51:17 -0600 Subject: [PATCH] fixup --- scripts/test.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 368c6fc4b5..1855463411 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -83,10 +83,14 @@ all_directories+=$'\n' all_directories+=$(discover_directories "$TESTS_DIR") # Sort, filter, and generate JSON objects -echo "[" +json_output=$(mktemp) +echo '[' > "$json_output" echo "$all_directories" | sort | while read -r dir; do if ! is_excluded "$dir"; then generate_json "$dir" fi -done | sed '$ s/,$//' # Remove the last comma -echo "]" +done | sed '$ s/,$//' >> "$json_output" # Remove the last comma +echo ']' >> "$json_output" + +# Output the Base64-encoded JSON +base64 "$json_output"