From 9dcff293445f34f0893472fbbdd5c60d18fa5a1c Mon Sep 17 00:00:00 2001 From: pakrym-oai Date: Tue, 7 Apr 2026 12:38:21 -0700 Subject: [PATCH] codex: normalize linux sandbox helper path --- codex-rs/linux-sandbox/tests/suite/landlock.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codex-rs/linux-sandbox/tests/suite/landlock.rs b/codex-rs/linux-sandbox/tests/suite/landlock.rs index d5b338599b..374c50a3f5 100644 --- a/codex-rs/linux-sandbox/tests/suite/landlock.rs +++ b/codex-rs/linux-sandbox/tests/suite/landlock.rs @@ -575,8 +575,8 @@ async fn sandbox_blocks_explicit_split_policy_carveouts_under_bwrap() { }, FileSystemSandboxEntry { path: FileSystemPath::Path { - path: AbsolutePathBuf::try_from(sandbox_helper_dir.as_path()) - .expect("absolute helper dir"), + path: AbsolutePathBuf::relative_to_current_dir(sandbox_helper_dir.as_path()) + .expect("helper dir"), }, access: FileSystemAccessMode::Read, }, @@ -648,8 +648,8 @@ async fn sandbox_reenables_writable_subpaths_under_unreadable_parents() { }, FileSystemSandboxEntry { path: FileSystemPath::Path { - path: AbsolutePathBuf::try_from(sandbox_helper_dir.as_path()) - .expect("absolute helper dir"), + path: AbsolutePathBuf::relative_to_current_dir(sandbox_helper_dir.as_path()) + .expect("helper dir"), }, access: FileSystemAccessMode::Read, },