diff options
author | Jakub Kicinski <[email protected]> | 2024-02-23 21:06:58 -0800 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-02-27 15:20:08 +0100 |
commit | b819a8481a19043ca990980dd56b1a41389c665c (patch) | |
tree | 41e77a6831aa394bd09724f72b565942c97a9f7c /scripts/generate_rust_analyzer.py | |
parent | d0dc1e42109da515db92901ca07270930f15d619 (diff) |
selftests: netdevsim: be less selective for FW for the devlink test
Commit 6151ff9c7521 ("selftests: netdevsim: use suitable existing dummy
file for flash test") introduced a nice trick to the devlink flashing
test. Instead of user having to create a file under /lib/firmware
we just pick the first one that already exists.
Sadly, in AWS Linux there are no files directly under /lib/firmware,
only in subdirectories. Don't limit the search to -maxdepth 1.
We can use the %P print format to get the correct path for files
inside subdirectories:
$ find /lib/firmware -type f -printf '%P\n' | head -1
intel-ucode/06-1a-05
The full path is /lib/firmware/intel-ucode/06-1a-05
This works in GNU find, busybox doesn't have printf at all,
so we're not making it worse.
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions