Thread (32 messages) 32 messages, 5 authors, 27d ago

Re: [PATCH net-next] Documentation: networking: Add a test plan for ethtool pause validation

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-06-27 23:46:54
Also in: linux-doc, lkml

On Sat, Jun 27, 2026 at 02:30:28PM -0700, Jakub Kicinski wrote:
On Sat, 27 Jun 2026 07:34:31 +0200 Maxime Chevallier wrote:
quoted
quoted
This is very far from what existing python tests do in netdev.  
We can probably drop the class, as it is with this discussion, it's merely a way
to regroup doc common to similar tests. The rest really is the usual set of
ksft funcs you can feed to the run function, with a set of ksft_ethtool_*
annotators for generic checks.
The common way of checking prereqs in the tests is to call a function
called require_xyz() which then raises a skip. At a quick glance - the
rss_api and xdp_metadata are good tests to get a sense of the usual format.
The counter example is the ksft_disruptive() decorator.

Pythons own unittest framework makes use of decorators to skip
tests. Its the Pythonic way.

	Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help