diff options
| author | Jakub Kicinski <[email protected]> | 2025-05-03 01:18:56 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-05-06 09:04:58 +0000 |
| commit | 8f0ae19346ce1cadf17f5ea6b01e7b6eb815e2fd (patch) | |
| tree | 73236520deefbcac4b77715cc57af708a4b63f59 /tools/net/ynl/pyynl/cli.py | |
| parent | Merge branch 'net-ibmveth-make-ibmveth-use-new-reset-function-and-new-kunit-t... (diff) | |
| download | kernel-8f0ae19346ce1cadf17f5ea6b01e7b6eb815e2fd.tar.gz kernel-8f0ae19346ce1cadf17f5ea6b01e7b6eb815e2fd.zip | |
selftests: net: exit cleanly on SIGTERM / timeout
ksft runner sends 2 SIGTERMs in a row if a test runs out of time.
Handle this in a similar way we handle SIGINT - cleanup and stop
running further tests.
Because we get 2 signals we need a bit of logic to ignore
the subsequent one, they come immediately one after the other
(due to commit 9616cb34b08e ("kselftest/runner.sh: Propagate SIGTERM
to runner child")).
This change makes sure we run cleanup (scheduled defer()s)
and also print a stack trace on SIGTERM, which doesn't happen
by default. Tests occasionally hang in NIPA and it's impossible
to tell what they are waiting from or doing.
Signed-off-by: Jakub Kicinski <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions
