diff options
author | Josef Bacik <josef@toxicpanda.com> | 2021-11-24 10:17:40 -0500 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2021-11-28 22:17:24 +0800 |
commit | 6085f8144c2439cba55cbb31882c3122ea4fe7c6 (patch) | |
tree | 9c769d5df98eb0721bc68f266f158dd9bed32715 | |
parent | f2976706bb84573b856ba2d9875bae6152246510 (diff) | |
download | xfstests-dev-6085f8144c2439cba55cbb31882c3122ea4fe7c6.tar.gz |
btrfs/176: redirect _format_swapfile to null
Since bb0ab7b2 ("common/rc: Enable _format_swapfile to return the swap
size") we started echo'ing out the swap file size, which is polluting
the golden output for btrfs/176 causing it to fail. Fix this by
redirecting the output to /dev/null.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rwxr-xr-x | tests/btrfs/176 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/btrfs/176 b/tests/btrfs/176 index 9a833575b1..0e6230ec79 100755 --- a/tests/btrfs/176 +++ b/tests/btrfs/176 @@ -47,7 +47,7 @@ _check_scratch_fs "$scratch_dev2" echo "Replace device" _scratch_mkfs >> $seqres.full 2>&1 _scratch_mount -_format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10)) +_format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10)) > /dev/null $BTRFS_UTIL_PROG device add -f "$scratch_dev2" "$SCRATCH_MNT" >> $seqres.full swapon "$SCRATCH_MNT/swap" 2>&1 | _filter_scratch # Again, we know the swap file is on device 1. |