From ebaf64d3fb72f6d6c90c4947cd95bfefb8406715 Mon Sep 17 00:00:00 2001 From: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Date: Thu, 13 Aug 2026 10:58:25 +0000 Subject: [PATCH] test: gate shell hook regression on unix refs #2769 --- tests/cli/hooks.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/cli/hooks.rs b/tests/cli/hooks.rs index 172219c8..f14943a8 100644 --- a/tests/cli/hooks.rs +++ b/tests/cli/hooks.rs @@ -1,4 +1,5 @@ use super::harness::*; +#[cfg(unix)] use std::os::unix::fs::PermissionsExt; fn run_claude_hook(action: &str, hook_input: &str) -> Option { @@ -110,6 +111,7 @@ fn run_shell_hook_with_env( request.map(|line| serde_json::from_str(&line).unwrap()) } +#[cfg(unix)] #[test] fn shell_hooks_ignore_unusable_python_on_path() { let base = unique_test_dir();