public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic/095: don't silence fio error output
@ 2021-02-02  6:22 Zorro Lang
  2021-02-03 16:22 ` Brian Foster
  2021-03-14 11:36 ` Eryu Guan
  0 siblings, 2 replies; 6+ messages in thread
From: Zorro Lang @ 2021-02-02  6:22 UTC (permalink / raw)
  To: fstests

This case print both fio stdout and stderr to .full file, that cause
we miss some unexpected failures when there's a bug. For example:

  file:io_u.c:1803, func=io_u error, error=Block device required

This's an regression issue we find on a downstream kernel, not in
upstream. So release unexpected fio error output to find more issues.

Signed-off-by: Zorro Lang <zlang@redhat.com>
---
 tests/generic/095 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/generic/095 b/tests/generic/095
index 9afaa761..30fe77a5 100755
--- a/tests/generic/095
+++ b/tests/generic/095
@@ -98,8 +98,11 @@ _require_fio $fio_config
 _scratch_mkfs >>$seqres.full 2>&1
 _scratch_mount
 
+# There's a known EIO failure to report collisions between directio and buffered
+# writes to userspace, refer to upstream linux 5a9d929d6e13. So ignore EIO error
+# at here.
+$FIO_PROG $fio_config --ignore_error=,EIO --output=$seqres.full
 echo "Silence is golden"
-$FIO_PROG $fio_config >>$seqres.full 2>&1
 
 # xfs generates WARNINGs on purpose when applications mix buffered/mmap IO with
 # direct IO on the same file. On the other hand, this fio job has been proven
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-15  0:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-02  6:22 [PATCH] generic/095: don't silence fio error output Zorro Lang
2021-02-03 16:22 ` Brian Foster
2021-03-14 11:36 ` Eryu Guan
2021-03-14 15:49   ` Zorro Lang
2021-03-14 16:02     ` Eryu Guan
2021-03-15  0:56       ` Zorro Lang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox