Move shell snapshot tests into shell-command (#39480)

## What changed

- Co-locate the Bash and zsh snapshot-script tests with
  `codex-shell-command`, where `snapshot_script` is implemented.
- Add `tempfile` as a dev dependency for the relocated tests.
- Keep the higher-level snapshot lifecycle tests in `codex-core`.

GitOrigin-RevId: 6d5e9ab95962722f7c89ea40512bd70ee81d8da2
This commit is contained in:
jif authored and copyberry committed 2026-08-19 12:56:08 +00:00
1 parent e741cd9ace
commit d1d51f6315
5 files changed
+168 -159

No files matched your search

@@ -1,5 +1,9 @@
use crate::shell_detect::ShellType;
#[cfg(all(test, unix))]
#[path = "shell_snapshot_tests.rs"]
mod tests;
const EXCLUDED_EXPORT_VARS: &[&str] = &["PWD", "OLDPWD"];
/// Returns the shell-native script used to capture restorable shell state.