From b6d580ea3ea58ab22853ca4aa7b0cf606bc5e71d Mon Sep 17 00:00:00 2001 From: codex-bot-andresmgsl <244098813+codex-bot-andresmgsl@users.noreply.github.com> Date: Fri, 24 Jul 2026 10:17:22 +0000 Subject: [PATCH] test: make bootstrap provenance count assertive --- test/cli.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/cli.sh b/test/cli.sh index 311880e..54acc30 100644 --- a/test/cli.sh +++ b/test/cli.sh @@ -145,10 +145,8 @@ check "bootstrap: role marker write is present" 0 "" \ grep -q "/etc/rig/role" "$ROOT/commands/bootstrap.sh" check "bootstrap: role marker records join provenance" 0 "join-by=%s" \ grep -F "join-by=%s" "$ROOT/commands/bootstrap.sh" -# shellcheck disable=SC2016 check "bootstrap: both first-join paths record join-by=rig" 0 "2" \ - bash -c 'test "$(grep -c "^[[:space:]]*JOIN_BY=rig$" "$1")" -eq 2; echo 2' _ \ - "$ROOT/commands/bootstrap.sh" + grep -c "^[[:space:]]*JOIN_BY=rig$" "$ROOT/commands/bootstrap.sh" check "bootstrap: already-joined path defaults to join-by=preexisting" 0 "JOIN_BY=preexisting" \ grep -F "JOIN_BY=preexisting" "$ROOT/commands/bootstrap.sh"