diff --git a/tests/zfs-tests/tests/functional/userquota/userquota_006_pos.ksh b/tests/zfs-tests/tests/functional/userquota/userquota_006_pos.ksh index c53cb5f1e72b..7848a924bde8 100755 --- a/tests/zfs-tests/tests/functional/userquota/userquota_006_pos.ksh +++ b/tests/zfs-tests/tests/functional/userquota/userquota_006_pos.ksh @@ -67,7 +67,11 @@ done set -A no_groups "aidsf@dfsd@" "123223-dsfds#sdfsd" "mss_#ss" "1234" for group in "${no_groups[@]}"; do - log_mustnot eval "groupdel $group > /dev/null 2>&1" + if is_freebsd; then + log_mustnot eval "pw groupdel -n $group >/dev/null 2>&1" + else + log_mustnot eval "groupdel $group >/dev/null 2>&1" + fi log_must eval "zfs get groupquota@$group $QFS >/dev/null 2>&1" log_must eval "zfs get groupquota@$group $snap_fs >/dev/null 2>&1" done