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:
1 parent
aaef419a6d
commit
a196b0fa45
1 file changed
+5
-4
@@ -262,9 +262,10 @@ argv_value() {
|
|||||||
grep -q 'retire_halogen_large_quadlet' "$REMOTE_DEPLOY"
|
grep -q 'retire_halogen_large_quadlet' "$REMOTE_DEPLOY"
|
||||||
grep -q 'HOME/.AGENTTRASH' "$REMOTE_DEPLOY"
|
grep -q 'HOME/.AGENTTRASH' "$REMOTE_DEPLOY"
|
||||||
! grep -qE '(^|[^[:alnum:]_])rm (-[a-zA-Z]+ )?.*frank-large' "$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
|
# Nothing live ships for this endpoint as a container any more. The
|
||||||
# archived copy is host state in an ignored .AGENTTRASH, not a tracked
|
# archived copy is host state in an ignored .AGENTTRASH — deliberately
|
||||||
# file.
|
# 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" ]
|
[ ! -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
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user