mirror of
https://github.com/openai/codex.git
synced 2026-05-03 04:42:20 +03:00
fix(linux-sandbox): avoid expect in landlock test helper
Co-authored-by: Codex noreply@openai.com
This commit is contained in:
@@ -174,7 +174,7 @@ async fn run_cmd_result_with_policies_in_cwd(
|
||||
timeout_ms: u64,
|
||||
use_legacy_landlock: bool,
|
||||
) -> Result<codex_protocol::exec_output::ExecToolCallOutput> {
|
||||
let cwd = AbsolutePathBuf::from_absolute_path(cwd).expect("cwd should be absolute");
|
||||
let cwd = AbsolutePathBuf::from_absolute_path(cwd)?;
|
||||
let sandbox_cwd = cwd.clone();
|
||||
let params = ExecParams {
|
||||
command: cmd.iter().copied().map(str::to_owned).collect(),
|
||||
|
||||
Reference in New Issue
Block a user