Commit graph

3 commits

Author SHA1 Message Date
Alexander V. Chernikov
fcb063e222 testing: fix tests without cleanup in pytest.
It was broken by 89ffac3b01,
which added "cleanup" method to the base test class,
 resulting in reporting cleanup for all of the tests.

(cherry picked from commit bb60d265c9)
2023-01-23 22:09:04 +00:00
Alexander V. Chernikov
2419f06beb testing: improve python vnet wrapper.
* Derive jail name from class name and method name, instead of just
method name. This change reduces the chances of different tests
clashing.
 Old: 'jail_test_one'. New: 'pytest:TestExampleSimplest:test_one'
* Simplify vnetX_handler() method signature by skipping obj_map (unused)
 and pipe. The latter can be accessed as the vnet property.
* Add `send_object()` method as a pair to the `wait_object` inside the
 VnetTestTemplate class.
* Add `test_id` property to the BaseTest method. Previously it was
 provided only for the VnetTestTemplate class. This change makes
 the identifier easily accessible for all users.

MFC after:	2 weeks

(cherry picked from commit f63825ff21)
2023-01-23 22:09:04 +00:00
Alexander V. Chernikov
65f065ec71 netlink: connect netlink tests to the build
Reviewed By: ngie
Differential Revision: https://reviews.freebsd.org/D37708

(cherry picked from commit 3873bdc2f2)
2023-01-23 22:04:03 +00:00