mirror-linux/tools/testing/selftests/drivers/net
Jakub Kicinski a02f965d82 selftests: devlink: fix the fd redirect in dummy_reporter_test
[ Upstream commit 2fc60e2ff9 ]

$number + > bash means redirect FD $number, e.g. commonly
used 2> redirects stderr (fd 2). The test uses 8192> to
write the number 8192 to a file, this results in:

  ./devlink.sh: line 499: 8192: Bad file descriptor

Oddly the test also papers over this issue by checking
for failure (expecting an error rather than success)
so it passes, anyway.

Fixes: ff18176ad8 ("selftests: Add a test of large binary to devlink health test")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:55 +01:00
..
bonding selftests: net: Fix cross-tree inclusion of scripts 2022-10-20 21:09:22 -07:00
dsa selftests: net: Fix cross-tree inclusion of scripts 2022-10-20 21:09:22 -07:00
mlxsw selftests: mlxsw: Remove qos_burst test 2022-09-19 18:08:00 -07:00
netdevsim selftests: devlink: fix the fd redirect in dummy_reporter_test 2022-12-31 13:32:55 +01:00
ocelot selftests: net: tsn_lib: run phc2sys in automatic mode 2022-09-26 13:22:01 -07:00
team selftests: net: Fix netdev name mismatch in cleanup 2022-10-20 21:09:22 -07:00