fix(porch-store): saturation teardown no longer counts as a check
- Add a neutral note() helper (prints, touches neither pass nor fail) - Use it for the saturation leg's unconditional teardown line, which previously called ok() regardless of branch taken and inflated the reported count with a line that could never fail - New count: 78 checks, 0 failures (was 79) -- every number now is a real assertion Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> (cherry picked from commit 2ac1b8b6db360d4423dbb53d5d26b355e7b05e71)
This commit is contained in:
parent
84cfbb1885
commit
581fe5fd51
1 changed files with 2 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ pass=0
|
|||
fail=0
|
||||
ok() { echo "ok $1"; pass=$((pass + 1)); }
|
||||
bad() { echo "FAIL $1 -- $2"; fail=$((fail + 1)); }
|
||||
note() { echo "note $1"; }
|
||||
|
||||
if [[ ! -x "$WOC" || ! -x "$WOVM" ]]; then
|
||||
echo "web-app-accept: build woc and wovm first (just woc-build; just wovm-build)" >&2
|
||||
|
|
@ -1243,7 +1244,7 @@ if sp_out="$("$WOC" --emit "$SP" -o "$SP/saturation_check.wob" 2>&1)"; then
|
|||
kill -9 "$SRV" 2>/dev/null
|
||||
for _ in $(seq 1 20); do kill -0 "$SRV" 2>/dev/null || break; sleep 0.1; done
|
||||
fi
|
||||
ok "saturation: server torn down (graceful SIGTERM, or kill -9 on the known actor-pool hang)"
|
||||
note "saturation: server torn down (graceful SIGTERM, or kill -9 on the known actor-pool hang)"
|
||||
SRV=""
|
||||
else
|
||||
bad "saturation-compile" "$(printf '%s' "$sp_out" | head -1)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue