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:
viyatb-oai
2026-04-07 12:24:29 -07:00
co-authored by Codex
parent 3555e247a7
commit fe460cdfae
+8
View File
@@ -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");