mirror of
https://github.com/openai/codex.git
synced 2026-04-27 16:15:09 +00:00
codex: fix rebased test compilation
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -17,7 +17,9 @@ use codex_protocol::permissions::FileSystemSandboxPolicy;
|
||||
use codex_protocol::permissions::NetworkSandboxPolicy;
|
||||
use codex_protocol::protocol::SandboxPolicy;
|
||||
use codex_sandboxing::SandboxLaunchConfig;
|
||||
use codex_sandboxing::SandboxType;
|
||||
use codex_sandboxing::SandboxablePreference;
|
||||
use codex_sandboxing::get_platform_sandbox;
|
||||
use pretty_assertions::assert_eq;
|
||||
use tempfile::TempDir;
|
||||
use test_case::test_case;
|
||||
@@ -33,6 +35,11 @@ struct ProcessContext {
|
||||
server: Option<ExecServerHarness>,
|
||||
}
|
||||
|
||||
fn platform_sandbox_type() -> SandboxType {
|
||||
get_platform_sandbox(/*windows_sandbox_enabled*/ false)
|
||||
.expect("sandbox denial test requires a Unix sandbox")
|
||||
}
|
||||
|
||||
async fn create_process_context(use_remote: bool) -> Result<ProcessContext> {
|
||||
if use_remote {
|
||||
let server = exec_server().await?;
|
||||
|
||||
Reference in New Issue
Block a user