All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH blktests v2] tests/block/014: ignore dd error messages
@ 2021-04-08  4:39 Damien Le Moal
  2021-04-22 17:27 ` Omar Sandoval
  0 siblings, 1 reply; 2+ messages in thread
From: Damien Le Moal @ 2021-04-08  4:39 UTC (permalink / raw)
  To: Omar Sandoval, linux-block, Jens Axboe

The kernel commit de3510e52b0a ("null_blk: fix command timeout
completion handling") fixed null_blk driver to report ETIMEDOUT errors
for IO operations failed with a timeout. This change causes the dd call
in block/014 case to print the following error message:

dd: error reading '/dev/nullb0': Connection timed out

The presence of this message result in a failure of the test case even
without a kernel crash or hang, which is what the block/014 case is
testing. Avoid this failure by ignoring dd error messages using a
redirection of dd stderr to /dev/null.

Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
---

Changes from v1:
* Add Reported-by tag

 tests/block/014 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/block/014 b/tests/block/014
index 370fc3d..04c34fa 100755
--- a/tests/block/014
+++ b/tests/block/014
@@ -34,7 +34,7 @@ test() {
 		# crash or hang.
 		for ((i = 0; i < 100; i++)); do
 			dd if=/dev/nullb0 of=/dev/null bs=4K count=4 \
-				iflag=direct status=none &
+				iflag=direct status=none > /dev/null 2>&1 &
 		done
 		wait
 	done
-- 
2.30.2


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

end of thread, other threads:[~2021-04-22 17:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08  4:39 [PATCH blktests v2] tests/block/014: ignore dd error messages Damien Le Moal
2021-04-22 17:27 ` Omar Sandoval

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.