mirror of
https://github.com/openai/codex.git
synced 2026-11-30 00:10:49 +00:00
test: fix rebased sandbox expectations
Co-authored-by: Codex noreply@openai.com
This commit is contained in:
co-authored by
Codex noreply@openai.com
parent
f6d4dede9b
commit
8c16eadaf2
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user