diff options
author | Petr Machata <petrm@nvidia.com> | 2024-10-17 11:45:46 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-10-22 13:33:47 +0200 |
commit | 7f46615d59373b65dcd0fea7784bf20f93c169f0 (patch) | |
tree | f012b37c6cbdbff0cf198a1d2a15c10986f9af37 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0e07d5dbfbd9b0441ae4ec07a2a72738121356e2 (diff) |
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