]> www.infradead.org Git - users/hch/blktests.git/commit
tests/block/014: ignore dd error messages
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 8 Apr 2021 04:39:18 +0000 (13:39 +0900)
committerOmar Sandoval <osandov@fb.com>
Thu, 22 Apr 2021 17:15:39 +0000 (10:15 -0700)
commit672237594a79a2105dd8852ae38b40dc24d116da
tree65a8ebb799dc06b733e97ad34109f897504fed0f
parent4bc88ef88a6aaa84b5d45caea5d3f8f75f86447f
tests/block/014: ignore dd error messages

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>
tests/block/014