mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-19 16:39:50 +00:00
refactor: Add default case to script-specific assertions
Added default '*) ' case to handle agents without specific assertions, resolving SC2249 info warning and improving code clarity. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
96c38fe108
commit
ce0f2ce7fb
1 changed files with 4 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
# shellcheck disable=SC2154
|
||||
# Test harness for spawn scripts
|
||||
#
|
||||
# Mocks the `sprite` CLI and runs each script end-to-end to verify:
|
||||
|
|
@ -174,6 +175,9 @@ run_script_test() {
|
|||
assert_contains "${MOCK_LOG}" "sprite exec.*git clone.*nanoclaw" "Clones nanoclaw repo"
|
||||
assert_contains "${MOCK_LOG}" "sprite exec.*-file.*/tmp/nanoclaw_env" "Uploads nanoclaw .env"
|
||||
;;
|
||||
*)
|
||||
# No agent-specific assertions for other agents
|
||||
;;
|
||||
esac
|
||||
|
||||
# Check no temp files leaked
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue