Skip to contentSkip to conversation

generic/135: redirect stderr from _scratch_mkfs

PATCH New Eric Whitney 1 participant 1 message Aug 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/135: redirect stderr from _scratch_mkfs

In generic/135, benign warning message output from _scratch_mkfs on stderr can cause a golden output mismatch, as can occur when testing an ext4 bigalloc file system. It's the only generic test that does not also redirect stderr when directing _scratch_mkfs' stdout to /dev/null. Since error output from _scratch_mkfs doesn't seem important to the overall intent of the test, there should be no harm in making its stderr handling consistent.

---
 tests/generic/135 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/135 +1 -1
index 52418f6..14b8132 100755
@@ -41,7 +41,7 @@ _supported_os Linux IRIX
 
 _require_odirect
 _require_scratch
-_scratch_mkfs >/dev/null
+_scratch_mkfs >/dev/null 2>&1
 _scratch_mount
 
 cd $SCRATCH_MNT
Signature · 1 line
2.1.4