| 1 | package builtin |
| 2 | |
| 3 | import ( |
| 4 | "context" |
| 5 | "runtime" |
| 6 | "testing" |
| 7 | |
| 8 | "reasonix/internal/sandbox" |
| 9 | ) |
| 10 | |
| 11 | func requirePOSIXShellTest(t *testing.T) { |
| 12 | t.Helper() |
| 13 | if runtime.GOOS == "windows" { |
| 14 | t.Skip("POSIX shell behavior is covered by Unix CI; Windows uses dedicated PowerShell and sandbox-policy tests") |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | func fullAccessBashTestContext(ctx context.Context) context.Context { |
| 19 | return sandbox.WithPermissionPreset(ctx, "danger-full-access") |
| 20 | } |
| 21 |