test: update spel stub to the program-id subcommand

The deploy program_id fix switched the vendored-spel call from `inspect`
to `program-id`; update the test stub so it responds to `program-id`
(still accepting `inspect` for the `spel` passthrough proxy tests, which
forward it as an arbitrary arg). Restores all 168 CLI tests to green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EsVXmNmwMCWi5yGgGLVe6P
This commit is contained in:
Claude
2026-06-22 03:16:38 +00:00
parent d6d1464f40
commit acaa2db563
+2 -2
View File
@@ -3159,13 +3159,13 @@ if [ "${SPEL_FAIL:-0}" = "1" ]; then
exit 7
fi
if [ "$#" -ge 2 ] && [ "$1" = "inspect" ]; then
if [ "$#" -ge 2 ] && { [ "$1" = "program-id" ] || [ "$1" = "inspect" ]; }; then
bin_path="$2"
bin_name="$(basename "$bin_path")"
if [ -n "${SPEL_PROGRAM_ID_FAIL:-}" ]; then
case "$bin_name" in
*"$SPEL_PROGRAM_ID_FAIL"*)
echo "spel stub: forced inspect failure for $bin_name" >&2
echo "spel stub: forced program-id failure for $bin_name" >&2
exit 8
;;
esac