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.
This commit is contained in:
Frank
2026-09-28 22:12:16 -07:00
parent aaef419a6d
commit a196b0fa45
+5 -4
View File
@@ -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
}