From 86f61cc3bb58cb19a3b564c03cb477bf0ced9531 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 12 May 2026 19:28:35 -0700 Subject: [PATCH] tests/rootless.sh: use command -v instead of which Apparently, lima's experimental/fedora-rawhide image does not include which rpm, and we don't really want to bother installing it. Replace "which" with "command -v". Looks like this was the only place; we already use "command -v" everywhere else. This should fix lima (experimental/fedora-rawhide) CI. Signed-off-by: Kir Kolyshkin (cherry picked from commit 5e78f4a66dc359d95bb6cf3330ff008245a8f218) Signed-off-by: Kir Kolyshkin --- tests/rootless.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rootless.sh b/tests/rootless.sh index 9384598ab..e3a89e90b 100755 --- a/tests/rootless.sh +++ b/tests/rootless.sh @@ -215,7 +215,7 @@ for ROOTLESS_FEATURES in $features_powerset; do rootless@localhost -- "${ssh_env[@]}" bats -t "$ROOT/tests/integration$ROOTLESS_TESTPATH" else export "${ENV_LIST[@]}" - sudo -HE -u rootless PATH="$PATH" "$(which bats)" -t "$ROOT/tests/integration$ROOTLESS_TESTPATH" + sudo -HE -u rootless PATH="$PATH" "$(command -v bats)" -t "$ROOT/tests/integration$ROOTLESS_TESTPATH" fi cleanup done