From f946c7e8761c64cce3f850a16dd7b6351053229e Mon Sep 17 00:00:00 2001 From: veg Date: Sat, 11 Jul 2026 13:11:49 +0000 Subject: [PATCH] test: pin the no-candidate host test against real group membership The remediation-message test relied on the runner not being in group 'party'; on boxes where the runner is (the deployment hosts), host succeeded and the test failed. Route the child's id(1) through the suite's stub so the caller is deterministically in no candidate group. --- tests/45-group-select.bats | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/45-group-select.bats b/tests/45-group-select.bats index 880417e..7ceb11f 100644 --- a/tests/45-group-select.bats +++ b/tests/45-group-select.bats @@ -76,6 +76,7 @@ stub_id_groups() { } @test "host in no candidate group gets the remediation message" { + stub_id_groups "$USER dialout" unset TMUX_PARTY_GROUP export PARTY_GROUP_CANDIDATES="no-such-group-xyzzy" run "$PARTY_BIN" host nogroup