mirror_ubuntu-kernels/tools/testing/selftests/net/lib/py
Jakub Kicinski 655614ea2b selftests: net: fix counting totals when some checks fail
Totals currently only pay attention to exceptions, if check fails
(say ksft_eq()) the test case will be counted as pass:

  # At /ksft/drivers/net/./ping.py line 18:
  # Check failed 1 != 2
  not ok 1 ping.test_v4
  ok 2 ping.test_v6
  ok 3 ping.test_tcp
  # Totals: pass:3 fail:0 xfail:0 xpass:0 skip:0 error:0
            ^^^^^^^^^^^^^

Pay attention to the result.

Fixes: b86761ff63 ("selftests: net: add scaffolding for Netlink tests in Python")
Link: https://lore.kernel.org/r/20240417231146.2435572-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-18 16:15:31 -07:00
..
__init__.py selftests: drivers: add scaffolding for Netlink tests in Python 2024-04-08 11:40:41 +01:00
consts.py
ksft.py selftests: net: fix counting totals when some checks fail 2024-04-18 16:15:31 -07:00
nsim.py selftests: net: exercise page pool reporting via netlink 2024-04-15 11:21:13 -07:00
utils.py selftests: drv-net: add stdout to the command failed exception 2024-04-16 18:54:06 -07:00
ynl.py