Merge pull request #5283 from kolyshkin/1.5-5279

[1.5] tests/rootless.sh: use command -v instead of which
This commit is contained in:
lfbzhm
2026-05-14 22:19:17 +08: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