selftests: netdevsim: use suitable existing dummy file for flash test
authorJiri Pirko <jiri@nvidia.com>
Tue, 10 Oct 2023 14:44:00 +0000 (16:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2023 09:43:13 +0000 (10:43 +0100)
commit6151ff9c75210c0f9d3d9ddcd3de6325de12c2a0
tree5f38abf32353c8e78ec7a3a04da033c1c9706c10
parent0b38d2ec2282f39ecb82b6cdc9af42f817e77551
selftests: netdevsim: use suitable existing dummy file for flash test

The file name used in flash test was "dummy" because at the time test
was written, drivers were responsible for file request and as netdevsim
didn't do that, name was unused. However, the file load request is
now done in devlink code and therefore the file has to exist.
Use first random file from /lib/firmware for this purpose.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/netdevsim/devlink.sh