summaryrefslogtreecommitdiff
path: root/tests/btrfs/164
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2021-11-18 09:53:20 -0500
committerEryu Guan <guaneryu@gmail.com>2021-11-21 22:48:10 +0800
commit78c4d738fe365f186ff6795c68244a08037afcc5 (patch)
tree59a437c17bd4a5325f51ab63e2df212d38521692 /tests/btrfs/164
parent5fea9672e5995a321d7722a27cbfd2044dd6dcf4 (diff)
btrfs: redirect 'btrfs device add' output to seqres.full
I updated btrfs-progs on all my test runners and started failing tests because I was getting the TRIM messages in the golden output. There were fixes that went in recently to properly detect TRIM support which resulted in extra messages being printed. Fix this by redirecting stdout to $seqres.full for all 'btrfs device add' calls. If anything fails we'll still pollute the output, but normal status messages will get properly eaten. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'tests/btrfs/164')
-rwxr-xr-xtests/btrfs/1643
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/btrfs/164 b/tests/btrfs/164
index 3e69b35f..8fd6ab62 100755
--- a/tests/btrfs/164
+++ b/tests/btrfs/164
@@ -48,7 +48,8 @@ create_seed()
add_sprout()
{
- _run_btrfs_util_prog device add -f $dev_sprout $SCRATCH_MNT
+ _run_btrfs_util_prog device add -f $dev_sprout $SCRATCH_MNT >>\
+ $seqres.full
run_check mount -o rw,remount $dev_seed $SCRATCH_MNT
_run_btrfs_util_prog filesystem show -m $SCRATCH_MNT
}