Merge pull request #5279 from kolyshkin/fix-fedora-exp

tests/rootless.sh: use command -v instead of which
This commit is contained in:
Akihiro Suda
2026-05-13 13:32:32 +09:00
committed by GitHub
+1 -1
View File
@@ -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