diff options
author | наб <[email protected]> | 2022-03-09 13:52:14 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-04-01 17:57:25 -0700 |
commit | 592cf7f1e23280ab3f02b649fdcda75b72d16729 (patch) | |
tree | 216d18f680c264f8100f2fd94e58c3c5d7d8a5ef /tests/zfs-tests/include | |
parent | 62c5ccdf929fe3683625bf577175a1b59bc82f32 (diff) |
tests: get rid of which
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13259
Diffstat (limited to 'tests/zfs-tests/include')
-rw-r--r-- | tests/zfs-tests/include/commands.cfg | 3 | ||||
-rw-r--r-- | tests/zfs-tests/include/libtest.shlib | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/zfs-tests/include/commands.cfg b/tests/zfs-tests/include/commands.cfg index 50449633a..a5ee92071 100644 --- a/tests/zfs-tests/include/commands.cfg +++ b/tests/zfs-tests/include/commands.cfg @@ -109,8 +109,7 @@ export SYSTEM_FILES_COMMON='arp uuidgen vmstat wait - wc - which' + wc' export SYSTEM_FILES_FREEBSD='chflags compress diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib index a78c10ce2..f786f05e8 100644 --- a/tests/zfs-tests/include/libtest.shlib +++ b/tests/zfs-tests/include/libtest.shlib @@ -2618,7 +2618,7 @@ function add_user_linux #<group_name> <user_name> <basedir> # Add new users to the same group and the command line utils. # This allows them to be run out of the original users home # directory as long as it permissioned to be group readable. - cmd_group=$(stat --format="%G" $(which zfs)) + cmd_group=$(stat --format="%G" $(command -v zfs)) log_must usermod -a -G $cmd_group $user return 0 |