1 parent 9384b01 commit a4b46f0Copy full SHA for a4b46f0
1 file changed
evals/capability/cases/verify-common.sh
@@ -28,13 +28,14 @@ check_contract() {
28
}
29
30
# run_visible_suite <log-file> <fail-message>: fail (after printing the log)
31
-# unless `bun test` passes in the workdir.
+# unless `bun test` passes in the workdir. Callers pass a full `FAIL: ...`
32
+# line; this helper prints it as-is.
33
run_visible_suite() {
34
local log="$1"
35
local fail_message="$2"
36
if ! bun test >"$log" 2>&1; then
37
cat "$log"
- echo "FAIL: $fail_message"
38
+ echo "$fail_message"
39
exit 1
40
fi
41
0 commit comments