diff options
-rw-r--r-- | tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap.cfg b/tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap.cfg index 2ea8a4c72..54ecc18b5 100644 --- a/tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap.cfg +++ b/tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap.cfg @@ -35,6 +35,8 @@ # if is_linux; then SAVESWAPDEVS=$(swapon -s | nawk '(NR != 1) {print $1}') +elif is_freebsd; then + SAVESWAPDEVS=$(swapctl -l | nawk '(NR != 1) {print $1}') else SAVESWAPDEVS=$(swap -l | nawk '(NR != 1) {print $1}') fi |