diff options
author | Ryan Moeller <[email protected]> | 2021-01-24 18:56:59 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-01-24 16:07:05 -0800 |
commit | bfb7b9613a7f5559ece5a6789023b4cd3adb4017 (patch) | |
tree | 32c9f8fc7b57fb699b6b9eb6b10a91c8419a1762 /tests/zfs-tests | |
parent | 3e33897beccc756195ca86809788cf87cd32abc7 (diff) |
ZTS: Use swapctl to list swap devices on FreeBSD
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #11503
Diffstat (limited to 'tests/zfs-tests')
-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 |