mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-06 08:10:48 +00:00
Break the 415-line test_shared_common() function in test/run.sh into 7 focused sub-functions grouped by feature: - _test_model_validation (validate_model_id tests) - _test_json_ssh_utils (json_escape, SSH key ops) - _test_syntax_and_logging (syntax check, logging functions) - _test_browser_and_cloud_init (open_browser, cloud-init, connectivity) - _test_oauth_functions (wait_for_oauth_code, cleanup_oauth_session) - _test_ssh_wait (generic_ssh_wait success/failure) - _test_input_and_server_validation (safe_read, validate_server_name) Also add assert_common_succeeds and assert_common_fails helpers to eliminate repeated test boilerplate for simple pass/fail assertions. Agent: complexity-hunter Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| mock.sh | ||
| qa-dry-run.sh | ||
| record.sh | ||
| run.sh | ||
| update-readme.py | ||