[object Object]

← back to Crazy News Channel Shadowman

Cartoon batch: exit non-zero when any cartoon fails verification

2d5e99e769a1a1648b81956f2638f4556fbc4737 · 2026-09-24 09:54:59 -0700 · Steve Abrams

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqUe1Hvqsnrkxpe4R6jrk1

Files touched

Diff

commit 2d5e99e769a1a1648b81956f2638f4556fbc4737
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Sep 24 09:54:59 2026 -0700

    Cartoon batch: exit non-zero when any cartoon fails verification
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01DqUe1Hvqsnrkxpe4R6jrk1
---
 scripts/build-cartoon-batch.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/build-cartoon-batch.sh b/scripts/build-cartoon-batch.sh
index 0cbdb30..43f2cb7 100644
--- a/scripts/build-cartoon-batch.sh
+++ b/scripts/build-cartoon-batch.sh
@@ -98,5 +98,8 @@ for b in q['briefs']:
                             "verdict": "PASS" if ok else "FAIL"}) + "\n")
     b['status'] = 'built' if ok else 'failed'
 json.dump(q, open(qfile, 'w'), indent=2)
+sys.exit(1 if any(b.get('status') == 'failed' for b in q['briefs']) else 0)
 PYEOF
-echo "$TS batch complete (count=$COUNT dry=$DRY)" >>"$LOG"
+RC=$?
+echo "$TS batch complete (count=$COUNT dry=$DRY rc=$RC)" >>"$LOG"
+exit $RC

← 5aff77e Cartoon batch: verify output file + manifest entry (not just  ·  back to Crazy News Channel Shadowman  ·  crazy-news-channel: refresh real Google News headlines (42 s 24b3be0 →