fix(linux-sandbox): avoid expect in landlock test helper

Co-authored-by: Codex noreply@openai.com
This commit is contained in:
viyatb-oai
2026-04-10 23:11:18 -07:00
parent 906cff498c
commit 356035c871

View File

@@ -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(),