Thread (9 messages) flat view 9 messages, 4 authors, 2026-02-25

Re: [PATCH net-next 3/3] selftests: net: py: add cmd info for ksft_wait failure

From: Petr Machata <petrm@nvidia.com>
Date: 2026-02-24 13:15:57
Also in: linux-kselftest

Jakub Kicinski [off-list ref] writes:
Gal recently complained:

  When [ksft_wait failure] happens, the test fails with a cryptic
  message:
    # Exception| Exception: Did not receive ready message

Let's try to include the stdout/stderr of the command we tried
to start. E.g. for cmd("false", ksft_wait=True):

    # Exception| lib.py.utils.CmdInitFailure: Did not receive ready message
    # Exception| CMD: false
    # Exception|   EXIT: 1

We need to factor out _process_terminate() otherwise the exit
path may try to write to already disconnected self.ksft_term_fd.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help