mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #5279 from kolyshkin/fix-fedora-exp
tests/rootless.sh: use command -v instead of which
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user