diff options
author | 2024-10-17 11:45:46 +0200 | |
---|---|---|
committer | 2024-10-22 13:33:47 +0200 | |
commit | 7f46615d59373b65dcd0fea7784bf20f93c169f0 (patch) | |
tree | f012b37c6cbdbff0cf198a1d2a15c10986f9af37 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | selftests: forwarding: lib: Allow passing PID to stop_traffic() (diff) | |
download | wireguard-linux-7f46615d59373b65dcd0fea7784bf20f93c169f0.tar.xz wireguard-linux-7f46615d59373b65dcd0fea7784bf20f93c169f0.zip |
selftests: RED: Use defer for test cleanup
Instead of having a suite of dedicated cleanup functions, use the defer
framework to schedule cleanups right as their setup functions are run.
The sleep after stop_traffic() in mlxsw selftests is necessary, but
scheduling it as "defer sleep; defer stop_traffic" is silly. Instead, add a
local helper to stop traffic and sleep afterwards.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions