codex: normalize linux sandbox helper path

This commit is contained in:
pakrym-oai
2026-04-07 12:38:21 -07:00
parent 3dd4d75624
commit 9dcff29344

View File

@@ -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,
},