Skip to content

Commit cb7ed87

Browse files
committed
no-mistakes: apply CI fixes
1 parent dae6afd commit cb7ed87

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

bin/fm-account-continuation.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ capture_command_snapshot() {
151151
[ "$head_rc" -eq 0 ] || return "$head_rc"
152152
bytes=$(snapshot_bytes "$file") || return 1
153153
if [ "$command_rc" -eq 0 ] \
154-
|| { [ "$command_rc" -eq 141 ] && [ "$bytes" -gt "$MAX_SNAPSHOT_BYTES" ]; }; then
154+
|| { [ "$bytes" -gt "$MAX_SNAPSHOT_BYTES" ] \
155+
&& { [ "$command_rc" -eq 141 ] || [ "$failure_mode" = unavailable ]; }; }; then
155156
return 0
156157
fi
157158
[ "$failure_mode" = unavailable ] || return "$command_rc"

tests/fm-account-routing.test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,9 @@ test_continuation_caps_informational_snapshots_only() {
22242224
run_spawn "$id" "$PROJ_DIR" --account-pool claude-crew >/dev/null || fail "continuation snapshot cap precondition spawn failed"
22252225
cat > "$FAKEBIN_DIR/no-mistakes" <<'SH'
22262226
#!/usr/bin/env bash
2227+
trap '' PIPE
22272228
head -c 100000 /dev/zero | tr '\0' s
2229+
exit 42
22282230
SH
22292231
chmod +x "$FAKEBIN_DIR/no-mistakes"
22302232
rm -f "$CASE_DIR/endpoint-live"

0 commit comments

Comments
 (0)