ZTS: Fix userquota_006_pos on FreeBSD
FreeBSD uses `pw` for account management. `userquota_006_pos` erroneously invokes the non-existent `groupdel` command on FreeBSD. Use `pw groupdel -n` instead of `groupdel` on FreeBSD. Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10032
This commit is contained in:
parent
b11375d74a
commit
ca7ea23f8a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user