From: Darrick J. Wong Date: Tue, 8 Oct 2019 01:03:17 +0000 (-0700) Subject: xfs/{088, 089, 091}: redirect stderr when writing to corrupt fs X-Git-Tag: v2022.05.01~1001 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d48645e8a120d9933e7fc32758ebab381f183c9a;p=xfstests-dev.git xfs/{088, 089, 091}: redirect stderr when writing to corrupt fs These tests primarily check that writes to a corrupt fs don't take down the system, and that running repair will fix them. Therefore, redirect stderr to seqres.full so that we don't fail these tests in DAX mode. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/088 b/tests/xfs/088 index 74b45163..d8ca877a 100755 --- a/tests/xfs/088 +++ b/tests/xfs/088 @@ -80,7 +80,7 @@ echo "+ mount image && modify files" if _try_scratch_mount >> $seqres.full 2>&1; then for x in `seq 1 64`; do - $XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full + $XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full 2>> $seqres.full done umount "${SCRATCH_MNT}" fi diff --git a/tests/xfs/089 b/tests/xfs/089 index bcbc6363..ad980769 100755 --- a/tests/xfs/089 +++ b/tests/xfs/089 @@ -80,7 +80,7 @@ echo "+ mount image && modify files" if _try_scratch_mount >> $seqres.full 2>&1; then for x in `seq 1 64`; do - $XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full + $XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full 2>> $seqres.full done umount "${SCRATCH_MNT}" fi diff --git a/tests/xfs/091 b/tests/xfs/091 index be56d8ae..37c07a52 100755 --- a/tests/xfs/091 +++ b/tests/xfs/091 @@ -80,7 +80,7 @@ echo "+ mount image && modify files" if _try_scratch_mount >> $seqres.full 2>&1; then for x in `seq 1 64`; do - $XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full + $XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full 2>> $seqres.full done umount "${SCRATCH_MNT}" fi