From 6fb1c21aea29ab38f87683b7d8d8184613f29c60 Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Mon, 10 Aug 2026 16:41:53 +1000 Subject: [PATCH] Remove version check in bin/.test-in-docker Our test runner now uses version 3 --- bin/.test-in-docker | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/.test-in-docker b/bin/.test-in-docker index bb5c1433..9adbba67 100644 --- a/bin/.test-in-docker +++ b/bin/.test-in-docker @@ -18,12 +18,15 @@ for slug in $all_slugs; do # their solution. cp /tmp/solution/.meta/example.zig "/tmp/solution/${snake}.zig" bin/run.sh "${slug}" /tmp/solution /tmp/solution > /dev/null - solution_pattern=$(cat /tmp/solution/results.json | jq -r tostring | grep "{\"version\":2,\"status\":\"pass\"") errors="" - if [ -z "$solution_pattern" ]; then - errors="${errors}\n\nSolution is incorrect:\n$(cat /tmp/solution/results.json | jq -r '.message')" + if ! jq -e '.status == "pass"' /tmp/solution/results.json > /dev/null; then + # A compile error reports at the top level; failing tests report per test. + errors="${errors}\n\nSolution is incorrect:\n$(jq -r ' + .message + // ([.tests[]? | select(.status != "pass") | "\(.name):\n\(.message // "no message")"] | join("\n\n")) + ' /tmp/solution/results.json)" local_exit_code=1; fi