diff options
| author | Willem de Bruijn <willemb@google.com> | 2026-05-04 13:38:32 -0400 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-05-05 18:15:29 -0700 |
| commit | d9c1e7dc4adab28e07774ed23b137319b1c75241 (patch) | |
| tree | c458eb233538bf045f9e234df8c3b41fbce19780 /include/linux/timerqueue.h | |
| parent | 17099a2f86cbbcde762f67d629696aaa61b34fb7 (diff) | |
selftests: net: py: support cmd verifying expected failure
Support negative tests, where cmd raises an exception if the command
succeeded.
Add optional argument expect_fail to cmd and bkg. Where fail fails the
test on unexpected error, expect_fail fails it on unexpected success.
Both fail on negative return code. Python subprocess may set a
negative return code on process crash or timeout. Those are never
anticipated failures.
Signed-off-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260504174056.565319-2-willemdebruijn.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
