mirror of
https://github.com/openai/codex.git
synced 2026-09-13 11:47:17 +00:00
codex: normalize linux sandbox helper path
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user