linux/tools/testing/selftests/drivers/net/netdevsim
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
..
devlink_in_netns.sh
devlink_trap.sh testing: selftests: drivers: net: netdevsim: devlink: add test case for hard drop statistics 2021-06-14 13:04:25 -07:00
devlink.sh selftests: devlink: fix the fd redirect in dummy_reporter_test 2022-12-31 13:32:55 +01:00
ethtool-coalesce.sh selftests: add ring and coalesce selftests 2020-11-20 12:51:54 -08:00
ethtool-common.sh selftests: net: test ethtool -L vs mq 2021-09-15 15:46:02 +01:00
ethtool-fec.sh selftests: ethtool: add a netdevsim FEC test 2021-03-31 14:15:23 -07:00
ethtool-pause.sh selftests: extract common functions in ethtool-common.sh 2020-11-20 12:51:54 -08:00
ethtool-ring.sh selftests: add ring and coalesce selftests 2020-11-20 12:51:54 -08:00
fib_notifications.sh selftests: netdevsim: Test route offload failure notifications 2021-02-08 16:47:03 -08:00
fib.sh selftests: netdevsim: Add test cases for route deletion failure 2022-07-29 12:21:02 +01:00
hw_stats_l3.sh selftests: netdevsim: Increase sleep time in hw_stats_l3.sh test 2022-05-18 14:06:50 +01:00
nexthop.sh selftests: devlink_lib: Fix bouncing of netdevsim DEVLINK_DEV 2021-06-08 14:39:07 -07:00
psample.sh selftests: devlink_lib: Fix bouncing of netdevsim DEVLINK_DEV 2021-06-08 14:39:07 -07:00
tc-mq-visibility.sh selftests: net: test ethtool -L vs mq 2021-09-15 15:46:02 +01:00
udp_tunnel_nic.sh selftests: net: add a test for static UDP tunnel ports 2020-09-28 12:50:12 -07:00