From a196b0fa45d6a08ac0b0531c3775aedf6422c915 Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 28 Sep 2026 22:12:16 -0700 Subject: [PATCH] test: scope the halogen-quadlet check to tracked files The .AGENTTRASH archive is ignored and exists only in a primary checkout, so a filesystem grep fails there while passing in a worktree. git grep searches the tracked tree, which is what the assertion is about. --- tests/frank_large_unit.bats | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/frank_large_unit.bats b/tests/frank_large_unit.bats index 0f40820..0b6be28 100755 --- a/tests/frank_large_unit.bats +++ b/tests/frank_large_unit.bats @@ -262,9 +262,10 @@ argv_value() { grep -q 'retire_halogen_large_quadlet' "$REMOTE_DEPLOY" grep -q 'HOME/.AGENTTRASH' "$REMOTE_DEPLOY" ! grep -qE '(^|[^[:alnum:]_])rm (-[a-zA-Z]+ )?.*frank-large' "$REMOTE_DEPLOY" - # Nothing live ships for this endpoint as a container any more; the - # archived copy is host state in an ignored .AGENTTRASH, not a tracked - # file. + # Nothing live ships for this endpoint as a container any more. The + # archived copy is host state in an ignored .AGENTTRASH — deliberately + # untracked, and present only in a primary checkout — so search the + # tracked tree, not the filesystem. [ ! -e "$REPO_ROOT/dankclaw/frank-large/quadlet/frank-large.container" ] - ! grep -rq 'Image=.*halogen' "$REPO_ROOT/dankclaw" + ! git -C "$REPO_ROOT" grep -q 'Image=.*halogen' -- dankclaw }