mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +03:00
tests: get rid of which
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13259
This commit is contained in:
@@ -42,9 +42,7 @@ verify_runnable "global"
|
||||
log_assert "verify mmap'd pages work with libaio"
|
||||
|
||||
# mmap_libaio is built when the libaio-devel package is installed.
|
||||
if ! which mmap_libaio; then
|
||||
log_unsupported "This test requires mmap_libaio."
|
||||
fi
|
||||
command -v mmap_libaio > /dev/null || log_unsupported "This test requires mmap_libaio."
|
||||
|
||||
log_must chmod 777 $TESTDIR
|
||||
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
|
||||
. $STF_SUITE/tests/functional/pam/utilities.kshlib
|
||||
|
||||
if ! which pamtester; then
|
||||
log_unsupported "pam tests require the pamtester utility to be installed"
|
||||
fi
|
||||
command -v pamtester > /dev/null || log_unsupported "pam tests require the pamtester utility to be installed"
|
||||
|
||||
DISK=${DISKS%% *}
|
||||
create_pool $TESTPOOL "$DISK"
|
||||
|
||||
@@ -51,8 +51,8 @@ log_onexit cleanup
|
||||
|
||||
log_assert "Check root in user namespaces"
|
||||
|
||||
TOUCH=$(readlink -e $(which touch))
|
||||
CHMOD=$(readlink -e $(which chmod))
|
||||
TOUCH=$(readlink -f $(command -v touch))
|
||||
CHMOD=$(readlink -f $(command -v chmod))
|
||||
|
||||
for i in ${files[*]}; do
|
||||
log_must $TOUCH $TESTDIR/$i
|
||||
|
||||
Reference in New Issue
Block a user