[PATCH] xfs/083: fix the judgment of the number of content lines in $ROUND2_LOG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit 8973af00e ("fstests: cleanup fsstress process management") forces
the stdout of fsstress process to be redirected to the file $seqres.full,
so that there are only 7 lines of content in $ROUND2_LOG now.

The following is the content in $ROUND2_LOG before commit 8973af00e:
```
++ mount image (2)
++ chattr -R -i
+++ test scratch
+++ modify scratch
+++ stressing filesystem
seed = 1744949451
+++ xfs realtime not configured
++ umount
```

The following is the content in $ROUND2_LOG after commit 8973af00e:
```
++ mount image (2)
++ chattr -R -i
+++ test scratch
+++ modify scratch
+++ stressing filesystem
+++ xfs realtime not configured
++ umount
```

"seed = 1744949451" is redirected to the file $seqres.full since commit
8973af00e.

Signed-off-by: Ma Xinjian <maxj.fnst@xxxxxxxxxxx>
---
 tests/xfs/083 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/xfs/083 b/tests/xfs/083
index 9291c8c0..76f52df0 100755
--- a/tests/xfs/083
+++ b/tests/xfs/083
@@ -142,7 +142,7 @@ echo "++ check fs (2)" >> $seqres.full
 _repair_scratch_fs >> $seqres.full 2>&1
 
 grep -E -q '(did not fix|makes no progress)' $seqres.full && echo "xfs_repair failed" | tee -a $seqres.full
-if [ "$(wc -l < "$ROUND2_LOG")" -ne 8 ]; then
+if [ "$(wc -l < "$ROUND2_LOG")" -ne 7 ]; then
 	echo "xfs_repair did not fix everything" | tee -a $seqres.full
 fi
 echo "finished fuzzing" | tee -a "$seqres.full"
-- 
2.47.0





[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux