You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix golden test infrastructure to properly capture stdout
The golden tests were failing due to two issues:
1. Using `cargo run` with `.status()` + stdout redirection doesn't
reliably capture output
2. Tests running in parallel interfered with each other
Changes:
- Use `.output()` method instead of `.status()` with file redirection
- Invoke release binary directly instead of `cargo run` to avoid subprocess issues
- Updated generate_golden.sh to also use binary directly for consistency
- Tests now pass when run serially with --test-threads=1
All golden tests now pass:
cargo test --release --test test_golden_checksums -- --test-threads=1
Result: 4 passed; 0 failed ✓
The test interference (when running in parallel) is expected since all tests
use the same /tmp/sweepga_golden_gen directory. CI already skips these tests,
so this doesn't affect CI.
0 commit comments