--- codex-rs/core/tests/suite/remote_env.rs.orig 2026-10-15 18:57:07 UTC
+++ codex-rs/core/tests/suite/remote_env.rs
@@ -386,7 +386,7 @@ async fn remote_test_env_exposes_target_shell_and_exec
// TODO(anp): Assert Wine-exec exposes a `C:\\...` cwd after model-visible paths preserve
// target-native spelling instead of the Linux orchestrator's `/C:/...` representation.
let expected_shell = match test_target_os() {
- TestTargetOs::Linux => "bash",
+ TestTargetOs::Linux | TestTargetOs::FreeBsd => "bash",
TestTargetOs::Windows => "powershell",
TestTargetOs::MacOs => unreachable!("remote test targets do not run macOS"),
};
@@ -408,7 +408,7 @@ async fn approved_remote_shell_runs_in_remote_cwd() ->
skip_if_no_remote_env!(Ok(()));
let (shell, command) = match test_target_os() {
- TestTargetOs::Linux => (
+ TestTargetOs::Linux | TestTargetOs::FreeBsd => (
"bash",
r#"case "$PWD" in /tmp/codex-core-test-cwd-*) ;; *) echo "unexpected cwd: $PWD" >&2; exit 1 ;; esac"#,
),
@@ -529,7 +529,7 @@ async fn environment_permissions_follow_configuration_
);
let (shell, command) = match test_target_os() {
- TestTargetOs::Linux => (
+ TestTargetOs::Linux | TestTargetOs::FreeBsd => (
"bash",
format!(
"if printf blocked > {FILE_NAME}; then echo WRITE_SUCCEEDED; else echo WRITE_DENIED; fi"