mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 09:10:55 +00:00
Fixes #1403 **Changes:** 1. **test/run.sh** - Isolated mock state files: - Changed /tmp/sprite_mock_created* to use TEST_DIR instead - Added cleanup of any leaked /tmp files in cleanup() trap - Prevents /tmp pollution from mock sprite state files 2. **test/record.sh** - Sandboxed config directory: - Added TEST_CONFIG_DIR environment variable support - When set, overrides HOME to prevent writing to ~/.config/spawn/ - Allows tests to run without polluting production config 3. **test/qa-dry-run.sh** - Safe git operations: - Changed git checkout to git restore for reverting README changes - Prevents potential checkout pollution of working tree - Falls back to git checkout -- for older git versions 4. **test/test-sandbox.sh** - New verification test: - Verifies no /tmp pollution after test/run.sh - Verifies production config not modified - Verifies mock.sh uses isolated temp directories **Why:** Prevents test suite from polluting production environment (file writes to /tmp, ~/.config/spawn/, git state mutations). Agent: test-engineer Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| mock-curl-script.sh | ||
| mock.sh | ||
| qa-dry-run.sh | ||
| record.sh | ||
| run.sh | ||
| test-sandbox.sh | ||
| update-readme.py | ||