On macOS's bash, 3.2, a script that stops at an unset variable under set -u
exits 0 where an EXIT trap is set, and $? is 0 inside the trap too, so a check
that aborted read as a pass (measured: the same script exits 1 with no trap).
payload_test.sh showed it; seven more scripts pair set -u with an EXIT trap:
check-boot.sh, check-imports.sh, walk_window_macos.sh, opencore-add-kexts.sh,
ship-commit.sh, msi-boot.sh and msi-image.sh.
Each now keeps an ended flag, set at each deliberate success end, and its trap
does its cleanup as before, then turns an exit 0 short of that end into 1 and
keeps any other status. payload_test.sh takes the same form in place of the
trap its last fix removed, so it cleans its scratch on an abort again.
A round's changes on the lane host (moving its probes out of the queue, the
boot, the statuses, putting unreached probes back) now run in one potluck job
holding the 5080 and the whole host (msi-round.sh), dispatched from a throwaway
commit of the round's own (ship-commit.sh) that carries the gate's host scripts,
the tip's bench and the round's boot.env. probe-batch.sh only reads the host's
queue and published tips. --stage NAME=DIR[@TIP] copies a probe from a directory
on the host into the round inside the job, which replaces staging over ssh;
--ram sets the job's memory and --after runs a command after the boot in the
job (a hook's post-processing). --dry-run does not run as a job yet.