selftests: drv-net: stats: use skip instead of xfail for unsupported features
authorJakub Kicinski <kuba@kernel.org>
Fri, 20 Jun 2025 16:11:09 +0000 (09:11 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Jun 2025 00:06:25 +0000 (17:06 -0700)
commit2baa45432d9a84d69f6ae247f5d6eb6525572bbe
tree932996b53226af798aa6dbeddb45b231860ad4de
parentca6a3faee66e6dc84f3d24fa1b1fa8b0628871e9
selftests: drv-net: stats: use skip instead of xfail for unsupported features

XFAIL is considered a form of a pass by our CI. For HW devices returning
XFAIL for unsupported features is counter-productive because our CI
knows not to expect any HW test to pass until it sees 10 passes in a row.
If we return xfail the test shows up as pass even if the device doesn't
support the feature. netdevsim supports all features necessary for
the stats test so there is no concern about running the test in SW mode.

Make the test skip rather than xfail if driver doesn't support FEC or pause.

Link: https://patch.msgid.link/20250620161109.2146242-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/stats.py