Skip to content

Commit 6722375

Browse files
damien-lemoalosandov
authored andcommitted
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 <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 4bc88ef commit 6722375

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/block/014

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test() {
3434
# crash or hang.
3535
for ((i = 0; i < 100; i++)); do
3636
dd if=/dev/nullb0 of=/dev/null bs=4K count=4 \
37-
iflag=direct status=none &
37+
iflag=direct status=none > /dev/null 2>&1 &
3838
done
3939
wait
4040
done

0 commit comments

Comments
 (0)