diff options
author | Jakub Kicinski <[email protected]> | 2024-05-01 19:53:25 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-05-02 18:20:49 -0700 |
commit | e1bb5e65de8355ee76f51c6bfee2328ac5b2be15 (patch) | |
tree | 77fb0371c16f4973530137b3b5874c8bfb59650c /scripts/bpf_doc.py | |
parent | 1c8f43f477d92fda15bccd703b808cd46899cd3c (diff) |
selftests: net: py: check process exit code in bkg() and background cmd()
We're a bit too loose with error checking for background
processes. cmd() completely ignores the fail argument
passed to the constructor if background is True.
Default to checking for errors if process is not terminated
explicitly. Caller can override with True / False.
For bkg() the processing step is called magically by __exit__
so record the value passed in the constructor.
Reported-by: Willem de Bruijn <[email protected]>
Tested-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions