mirror of
https://github.com/openai/codex.git
synced 2026-10-25 18:28:38 +00:00
test: skip unsupported windows hook trust checks
Session-start hook discovery is disabled on Windows, so trust-loading assertions for hooks are not meaningful there. Keep the cross-platform project trust normalization regression covered separately. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -5624,6 +5624,10 @@ async fn unified_exec_rejects_escalated_permissions_when_policy_not_on_request()
|
||||
|
||||
#[tokio::test]
|
||||
async fn session_start_hooks_only_load_from_trusted_project_layers() -> std::io::Result<()> {
|
||||
if cfg!(windows) {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let temp = tempfile::tempdir()?;
|
||||
let codex_home = temp.path().join("home");
|
||||
let project_root = temp.path().join("project");
|
||||
@@ -5658,6 +5662,10 @@ async fn session_start_hooks_only_load_from_trusted_project_layers() -> std::io:
|
||||
|
||||
#[tokio::test]
|
||||
async fn session_start_hooks_require_project_trust_without_config_toml() -> std::io::Result<()> {
|
||||
if cfg!(windows) {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let temp = tempfile::tempdir()?;
|
||||
let project_root = temp.path().join("project");
|
||||
let nested = project_root.join("nested");
|
||||
|
||||
Reference in New Issue
Block a user