[PATCH 1/1] generic/747: redirect mkfs stderr to seqres.full

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



From: Darrick J. Wong <djwong@xxxxxxxxxx>

ext4 fails on this test with:

--- /tmp/fstests/tests/generic/747.out	2024-05-13 06:05:59.727025928 -0700
+++ /var/tmp/fstests/generic/747.out.bad	2024-05-21 18:34:51.836000000 -0700
@@ -1,4 +1,5 @@
 QA output created by 747
+mke2fs 1.47.2~WIP-2024-05-21 (21-May-2024)
 Starting fillup using direct IO
 Starting mixed write/delete test using direct IO
 Starting mixed write/delete test using buffered IO

The reason for this is that mke2fs annoyingly prints the program version
to stderr, which messes up the golden output.  Fix this by redirecting
stderr like all the othe tests, even though this doesn't seem like a
great solution...

Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx>
---
 tests/generic/747 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/tests/generic/747 b/tests/generic/747
index 50b7ae1160..bae1c84237 100755
--- a/tests/generic/747
+++ b/tests/generic/747
@@ -99,7 +99,7 @@ seed=$RANDOM
 RANDOM=$seed
 echo "Running test with seed=$seed" >>$seqres.full
 
-_scratch_mkfs_sized $((8 * 1024 * 1024 * 1024)) >>$seqres.full
+_scratch_mkfs_sized $((8 * 1024 * 1024 * 1024)) &>>$seqres.full
 _scratch_mount
 
 echo "Starting fillup using direct IO"





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux