CB-634: skip the zsh scrub-report test when /bin/zsh is absent
CI / contract (push) Successful in 1m10s
CI / build (push) Successful in 1m27s

scrubWritesAnAllowedNofMReport spawned /bin/zsh with no guard, so it
errored on the Gitea CI runner (Linux ARM64 container, no zsh) while
the two sibling zsh tests already skipped there via assumeTrue. Add the
same guard so CI skips instead of failing; the Mac build still runs it.
This commit is contained in:
Dai Ha
2026-08-25 04:18:45 +02:00
parent 3ce76a5d69
commit 97d9cebc59
@@ -92,6 +92,7 @@ class EnvAllowListScrubTest {
/** The scrub writes its denominator report next to itself; names only, parseable. */
@Test
void scrubWritesAnAllowedNofMReport(@TempDir Path tmp) throws Exception {
assumeTrue(Files.isExecutable(ZSH), "/bin/zsh not present — nothing to prove here");
Set<String> allowed = MemberEnvAllowList.derive(List.of());
Path zdotdir = EnvAllowListScrub.generate(tmp, allowed);