Skip to contentSkip to conversation

generic/747: Redirect stderr of _scratch_mkfs_sized

PATCH In review Ma Xinjian 2 participants 2 messages Jun 6, 2024

lore
Share & tools
lore

Ma Xinjian

author
#0 lore raw

PATCH 1/1 generic/747: Redirect stderr of _scratch_mkfs_sized

The mkfs tool may output some information into stderr, which will cause the output check failed.

In _scratch_mkfs_sized, the return value of mkfs tool is checked. So the error message can be redirect to stdout, just like what other cases do.

---
 tests/generic/747 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/747 +1 -1
index 50b7ae11..a0da1be5 100755
@@ -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 2>&1
 _scratch_mount
 
 echo "Starting fillup using direct IO"
Signature · 1 line
2.39.3
#1 lore raw
Quoted 5 lines · Ma Xinjian

The mkfs tool may output some information into stderr, which will cause the output check failed.

In _scratch_mkfs_sized, the return value of mkfs tool is checked. So the error message can be redirect to stdout, just like what other cases do.

Read list please
https://lore.kernel.org/fstests/171744525128.1531941.8755552045266618674.stgit@frogsfrogsfrogs/

--D

Quoted 22 lines
---
 tests/generic/747 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/747 +1 -1
index 50b7ae11..a0da1be5 100755
@@ -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 2>&1
 _scratch_mount
 
 echo "Starting fillup using direct IO"
Signature · 1 line
2.39.3