spawn/test
A e52e290b25
fix: enhance sandbox test to detect agent directory residue (#1417)
Fixes #1409

The bash sandbox test now verifies that test runs don't create or
modify agent-specific directories and configuration files:

- Checks that ~/.openclaw, ~/.sprite, and ~/.claude directories are
  not created by test runs
- Verifies ~/.claude.json and ~/.claude/settings.json are not modified
  during tests (using mtime comparison to handle pre-existing files)
- Skips checks for directories/files that existed before tests ran to
  avoid false positives in development environments

This ensures tests remain properly sandboxed and don't pollute the
production environment with agent artifacts.

Agent: code-health

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-17 12:52:24 -05:00
..
fixtures test: add mock test coverage for all 15 Fly.io agent scripts (#1390) 2026-02-17 05:52:26 -05:00
mock-curl-script.sh test: add mock test coverage for all 15 Fly.io agent scripts (#1390) 2026-02-17 05:52:26 -05:00
mock.sh test: add mock test coverage for all 15 Fly.io agent scripts (#1390) 2026-02-17 05:52:26 -05:00
qa-dry-run.sh test: sandbox bash tests to prevent production env pollution (#1404) 2026-02-17 11:26:17 -05:00
record.sh test: sandbox bash tests to prevent production env pollution (#1404) 2026-02-17 11:26:17 -05:00
run.sh test: sandbox bash tests to prevent production env pollution (#1404) 2026-02-17 11:26:17 -05:00
test-sandbox.sh fix: enhance sandbox test to detect agent directory residue (#1417) 2026-02-17 12:52:24 -05:00
update-readme.py QA-Bot setup (#335) 2026-02-10 19:51:07 -08:00