diff options
| author | Petr Machata <petrm@nvidia.com> | 2025-09-04 19:07:25 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-11 19:02:51 -0700 |
| commit | ed07c8f2b854e2d0c76ed95de7452fa5c0a3d4c5 (patch) | |
| tree | 98757c3e0f0fe3ec6363dcf94753f7c4a0c704d0 /rust/helpers/platform.c | |
| parent | d89d3b29ce1a081507bf7b0a18405dc6b8e69a21 (diff) | |
selftests: defer: Introduce DEFER_PAUSE_ON_FAIL
The fact that all cleanup (ideally) goes through the defer framework makes
debugging of these commands a bit tricky. However, this also gives us a
nice point to place a hook along the lines of PAUSE_ON_FAIL. When the
environment variable DEFER_PAUSE_ON_FAIL is set, and a cleanup command
results in non-zero exit status, show a bit of debuginfo and give the user
an opportunity to interrupt the execution altogether.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/2a07d24568ede6c42e4701657fa0b738e490fe59.1757004393.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
