Skip to content

selftests: net: py: improve bkg() error reporting

Jakub Kicinski linux-kselftest netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3selftests: net: py: avoid masking exceptions in bkg() failurestools/testing/selftests/net/lib/py/utils.py+5 -21 replyApplied
2/3selftests: net: py: use repr(cmd) for failure exceptionstools/testing/selftests/net/lib/py/utils.py+2 -31 replyApplied
3/3selftests: net: py: add cmd info for ksft_wait failuretools/testing/selftests/net/lib/py/utils.py+23 -71 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSimon HormanPetr Machata
SeriesR-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/3] selftests: net: py: improve bkg() error reporting

bkg() is a helper for running commands in the background. When init or body of a with() block fails check if the bkg() process already exited and report its status (including stdout/ /stderr). This significantly improves debugability.

Jakub Kicinski (3):
selftests: net: py: avoid masking exceptions in bkg() failures
selftests: net: py: use repr(cmd) for failure exceptions
selftests: net: py: add cmd info for ksft_wait failure

 tools/testing/selftests/net/lib/py/utils.py | 44 +++++++++++++++------
 1 file changed, 31 insertions(+), 13 deletions(-)
Signature · 1 line
2.53.0