test-admin-deploy-var: Don't rely on OSTREE_FEATURES

This is set during build-time testing, but unset during "as-installed"
tests.

Resolves: https://github.com/ostreedev/ostree/issues/3183
Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie 2024-02-19 13:04:14 +00:00 committed by Simon McVittie
parent 37466ec35b
commit 035b2c1647

View File

@ -21,7 +21,7 @@ set -euox pipefail
. $(dirname $0)/libtest.sh
if ! echo "$OSTREE_FEATURES" | grep --quiet --no-messages "initial-var"; then
if ! has_ostree_feature initial-var; then
fatal missing initial-var
fi