test: fix rebased sandbox expectations

Co-authored-by: Codex noreply@openai.com
This commit is contained in:
viyatb-oai
2026-05-04 11:41:47 -07:00
co-authored by Codex noreply@openai.com
parent f6d4dede9b
commit 8c16eadaf2
2 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -2245,7 +2245,9 @@ mod tests {
access: FileSystemAccessMode::Write,
}]);
let args = create_filesystem_args(&policy, temp_dir.path()).expect("filesystem args");
let args =
create_filesystem_args(&policy, temp_dir.path(), NO_UNREADABLE_GLOB_SCAN_MAX_DEPTH)
.expect("filesystem args");
assert!(
args.args
+6 -1
View File
@@ -865,7 +865,8 @@ fn create_seatbelt_args_with_read_only_git_and_codex_subpaths() {
);
assert!(
policy_text.contains("WRITABLE_ROOT_1_EXCLUDED_0")
&& policy_text.contains("WRITABLE_ROOT_1_EXCLUDED_1"),
&& policy_text.contains("WRITABLE_ROOT_1_EXCLUDED_1")
&& policy_text.contains("WRITABLE_ROOT_1_EXCLUDED_2"),
"expected explicit writable root .git/.codex carveouts in policy:\n{policy_text}",
);
assert!(
@@ -927,6 +928,10 @@ fn create_seatbelt_args_with_read_only_git_and_codex_subpaths() {
"-DWRITABLE_ROOT_1_EXCLUDED_1={}",
dot_codex_canonical.to_string_lossy()
),
format!(
"-DWRITABLE_ROOT_1_EXCLUDED_2={}",
dot_codex_canonical.join("config.toml").display()
),
format!(
"-DWRITABLE_ROOT_2={}",
empty_root_canonical.to_string_lossy()