Subject: Re: [PATCH net-next 2/3] selftests: net: py: use repr(cmd) for failure exceptions

From: Petr Machata <[email-masked]>
Date: Tue, 24 Feb 2026 14:03:13 +0100

Jakub Kicinski <[email-masked]> writes:

> Reuse repr(cmd) instead of manually formatting a similar string.
>
> Before:
>   # Exception| lib.py.utils.CmdExitFailure: Command failed: false
>   # Exception| STDOUT: b''
>   # Exception| STDERR: b''
>
> After:
>   # Exception| lib.py.utils.CmdExitFailure: Command failed
>   # Exception| CMD: false
>   # Exception|   EXIT: 1

(This seemingly omits STDOUT and STDERR, but cmd.__repr__ includes these
if they are truthy.)

> Signed-off-by: Jakub Kicinski <[email-masked]>

Reviewed-by: Petr Machata <[email-masked]>