diff options
| author | Petr Machata <[email protected]> | 2021-06-08 15:44:10 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-08 14:39:07 -0700 |
| commit | 0521a262f043ea521790ed2976141086c75d2f74 (patch) | |
| tree | 617ff1d9bb07066ff734a9e443c77bf75738fec7 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | e67dfb8d15deb33c425d0b0ee22f2e5eef54c162 (diff) | |
selftests: devlink_lib: Fix bouncing of netdevsim DEVLINK_DEV
In the commit referenced below, a check was added to devlink_lib that
asserts the existence of a devlink device referenced by $DEVLINK_DEV.
Unfortunately, several netdevsim tests point DEVLINK_DEV at a device that
does not exist at the time that devlink_lib is sourced. Thus these tests
spuriously fail.
Fix this by introducing an override. By setting DEVLINK_DEV to an empty
string, the user declares their intention to handle DEVLINK_DEV management
on their own.
In all netdevsim tests that use devlink_lib and set DEVLINK_DEV, set
instead an empty DEVLINK_DEV just before sourcing devlink_lib, and set it
to the correct value right afterwards.
Fixes: 557c4d2f780c ("selftests: devlink_lib: add check for devlink device existence")
Signed-off-by: Petr Machata <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions