From: Filipe Manana Date: Tue, 3 Oct 2023 11:57:45 +0000 (+0100) Subject: btrfs/192: use append operator to output log replay results to $seqres.full X-Git-Tag: v2023.10.08~10 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d213e332a32b5d74034ca718e1add40a2443fde2;p=xfstests-dev.git btrfs/192: use append operator to output log replay results to $seqres.full After doing log replay, btrfs/192 is overwriting the $seqres.full file because it uses the plain ">" redirect operator, instead of an append ">>" redirect operator. As a consequence it is overriding the file and eliminating any previous output that may be useful to debug a test failure (such as the fsstress seed or mkfs results). So use >> instead of >. Signed-off-by: Filipe Manana Reviewed-by: Anand Jain Reviewed-by: Qu Wenruo Signed-off-by: Zorro Lang --- diff --git a/tests/btrfs/192 b/tests/btrfs/192 index 80588a3c..00ea1478 100755 --- a/tests/btrfs/192 +++ b/tests/btrfs/192 @@ -121,7 +121,7 @@ log_writes_fast_replay_check() --replay $blkdev --check $check_point --fsck "$fsck_command" \ &> $tmp.full_fsck ret=$? - tail -n 150 $tmp.full_fsck > $seqres.full + tail -n 150 $tmp.full_fsck >> $seqres.full [ $ret -ne 0 ] && _fail "fsck failed during replay" }