]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
btrfs/192: use append operator to output log replay results to $seqres.full
authorFilipe Manana <fdmanana@suse.com>
Tue, 3 Oct 2023 11:57:45 +0000 (12:57 +0100)
committerZorro Lang <zlang@kernel.org>
Thu, 5 Oct 2023 14:32:01 +0000 (22:32 +0800)
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 <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/192

index 80588a3c993b475a71cc467aa010a2bf43603ab2..00ea1478ab1a71772db4084e3ef280074b2ce47c 100755 (executable)
@@ -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"
 }