mirror of
https://github.com/logos-co/scaffold.git
synced 2026-08-27 12:41:13 +00:00
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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user