From bfb7b9613a7f5559ece5a6789023b4cd3adb4017 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Sun, 24 Jan 2021 18:56:59 -0500 Subject: ZTS: Use swapctl to list swap devices on FreeBSD Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Ryan Moeller Closes #11503 --- tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap.cfg | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/zfs-tests') 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 -- cgit v1.2.3