```
19:26 [1] m@devel2 kyua list -k /usr/tests/sys/net/routing/Kyuafile test_pytest.py
test_pytest.py:TestClass::test_first
test_pytest.py:TestClass::test_second
test_pytest.py:test_test0_param_check
test_pytest.py:test_test1[a-a]
test_pytest.py:test_test1[bb-bb]
test_pytest.py:test_test2
test_pytest.py:test_test2_cleanup
test_pytest.py:test_test3
test_pytest.py:test_test31
test_pytest.py:test_test4
test_pytest.py:test_test5_marked_xfail_xfailed
test_pytest.py:test_test6_marked_xfail_passed
test_pytest.py:test_test7_marked_xfail_strict_xfailed
test_pytest.py:test_test8_marked_xfail_strict_xfailed
test_pytest.py:test_test9_call_failed
19:26 [1] m@devel2 s kyua test -k /usr/tests/sys/net/routing/Kyuafile test_pytest.py
test_pytest.py:TestClass::test_first -> passed [0.190s]
test_pytest.py:TestClass::test_second -> passed [0.194s]
test_pytest.py:test_test0_param_check -> passed [0.191s]
test_pytest.py:test_test1[a-a] -> passed [0.190s]
test_pytest.py:test_test1[bb-bb] -> passed [0.190s]
test_pytest.py:test_test2 -> failed: /usr/tests/sys/net/routing/test_pytest.py:29: NameError [0.203s]
test_pytest.py:test_test2_cleanup -> passed [0.190s]
test_pytest.py:test_test3 -> skipped: unable to test [0.189s]
test_pytest.py:test_test31 -> skipped: unconditional skip [0.189s]
test_pytest.py:test_test4 -> skipped: because I can [0.189s]
test_pytest.py:test_test5_marked_xfail_xfailed -> skipped: /usr/tests/sys/net/routing/test_pytest.py:54: XFailed [0.205s]
test_pytest.py:test_test6_marked_xfail_passed -> passed [0.189s]
test_pytest.py:test_test7_marked_xfail_strict_xfailed -> skipped: /usr/tests/sys/net/routing/test_pytest.py:64: XFailed [0.202s]
test_pytest.py:test_test8_marked_xfail_strict_xfailed -> failed: [XPASS(strict)] [0.189s]
test_pytest.py:test_test9_call_failed -> failed: /usr/tests/sys/net/routing/test_pytest.py:74: AssertionError [0.204s]
```
Debugging failed test:
```
19:27 [1] m@devel2 s kyua debug -k /usr/tests/sys/net/routing/Kyuafile test_pytest.py:test_test2
============================= test session starts ==============================
platform freebsd14 -- Python 3.8.13, pytest-7.1.2, pluggy-0.13.1
rootdir: /usr/tests/sys/net/routing
collected 1 item
../../../../usr/tests/sys/net/routing/test_pytest.py TEST2 -> STDOUT MESSAGE
F
=================================== FAILURES ===================================
__________________________________ test_test2 __________________________________
@pytest.mark.require_user("root")
def test_test2():
'''Description 2'''
print("TEST2 -> STDOUT MESSAGE")
> print("TEST2 -> STDERR MESSAGE", file=sys.stderr)
E NameError: name 'sys' is not defined
/usr/tests/sys/net/routing/test_pytest.py:29: NameError
=========================== short test summary info ============================
FAILED ../../../../usr/tests/sys/net/routing/test_pytest.py::test_test2 - Nam...
============================== 1 failed in 0.02s ===============================
test_pytest.py:test_test2 -> failed: /usr/tests/sys/net/routing/test_pytest.py:29: NameError
```
Real routing tests with side-effects (VNET&interface creation)
```
19:29 [1] m@devel2 s kyua test -k /usr/tests/sys/net/routing/Kyuafile test_rtsock_multipath.py
test_rtsock_multipath.py:TestAddRouteWithRta::test_add_route_with_rta -> passed [0.287s]
test_rtsock_multipath.py:TestRtmGetv4ExactSuccess::test_rtm_get_v4_exact_success -> passed [0.279s]
19:30 [1] m@devel2 s kyua debug -k /usr/tests/sys/net/routing/Kyuafile test_rtsock_multipath.py:TestAddRouteWithRta::test_add_route_with_rta
============================= test session starts ==============================
platform freebsd14 -- Python 3.8.13, pytest-7.1.2, pluggy-0.13.1
rootdir: /usr/tests/sys/net/routing
collected 1 item
../../../../usr/tests/sys/net/routing/test_rtsock_multipath.py run: '/sbin/ifconfig epair create'
run: '/usr/sbin/jail -i -c name=jail_test_add_route_with_rta persist vnet vnet.interface=epair0a'
run: 'jexec jail_test_add_route_with_rta /sbin/ifconfig -l'
run: '/sbin/ifconfig epair0a up'
run: '/sbin/ifconfig epair0a inet 192.0.2.1/24'
vvvvvvvv OUT vvvvvvvv
RTM_GET: len 184, pid: 0, seq 1, errno 0, flags: <>
Addrs: <RTA_DST,RTA_NETMASK>
RTA_DST: 192.0.2.0
RTA_NETMASK: 255.255.255.0
write(184) -> 'Rtsock' object has no attribute 'assertEqual'
vvvvvvvv IN vvvvvvvv
RTM_GET: len 200, pid: 65315, seq 1, errno 0, flags: <RTF_UP,RTF_DONE,RTF_PINNED>
Addrs: <RTA_DST,RTA_GATEWAY,RTA_NETMASK>
RTA_DST: 192.0.2.0
RTA_GATEWAY: link#3
RTA_NETMASK: 255.255.255.0
.
============================== 1 passed in 0.08s ===============================
============================= test session starts ==============================
platform freebsd14 -- Python 3.8.13, pytest-7.1.2, pluggy-0.13.1
rootdir: /usr/tests/sys/net/routing
collected 1 item
../../../../usr/tests/sys/net/routing/test_rtsock_multipath.py ==== vnet cleanup ===
run: '/usr/sbin/jail -r jail_test_add_route_with_rta'
run: '/sbin/ifconfig epair0a destroy'
run: '/sbin/ifconfig epair0b destroy'
.
============================== 1 passed in 0.18s ===============================
ifconfig: interface epair0a does not exist
test_rtsock_multipath.py:TestAddRouteWithRta::test_add_route_with_rta -> passed
```