From bb1fde2084a6370fb4a29779efe0ff6c4005d58b Mon Sep 17 00:00:00 2001 From: Glenn Jackman Date: Thu, 26 Nov 2026 10:52:29 -0500 Subject: [PATCH] Fail bin/validate_one_exercise -D when tests do not pass The test runner exits successfully even when tests fail, so check the status in results.json. Co-Authored-By: Claude Sonnet 5.5 --- bin/validate_one_exercise | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/validate_one_exercise b/bin/validate_one_exercise index 9ab8862e..adc9a900 100755 --- a/bin/validate_one_exercise +++ b/bin/validate_one_exercise @@ -95,6 +95,9 @@ if $in_docker; then --mount type=tmpfs,dst=/tmp \ exercism/bash-test-runner "${exercise}" /solution /output jq . ./results.json + # the test runner exits successfully even when tests fail + jq -e '.status == "pass"' ./results.json > /dev/null || + die "Tests did not pass for ${exercise}" else BATS_RUN_SKIPPED=true bats "${tests}" fi