]> git.puffer.fish Git - mirror/frr.git/commit
tests: convert old pim test to more cleanly use pytest fixture 13726/head
authorChristian Hopps <chopps@labn.net>
Thu, 8 Jun 2023 08:12:26 +0000 (04:12 -0400)
committerChristian Hopps <chopps@labn.net>
Thu, 8 Jun 2023 08:55:32 +0000 (04:55 -0400)
commitb28bc2561e7231e410e304f7ec23f9d795e3e479
treeac970a89a1d64c8dae07e3d6d4b9ac79ffd3e35c
parentefedb1897616c6de76aaaff7a51f443dbbe93e31
tests: convert old pim test to more cleanly use pytest fixture

This is a good way to run a per-test background helper process. Here the
helper object is created before the test function requesting it (through param
name match), and then cleaned up after the test function exits (pass or failed).

A context manager is used to further guarantee the cleanup is done.

Signed-off-by: Christian Hopps <chopps@labn.net>
tests/topotests/multicast_pim6_sm_topo1/test_multicast_pim6_sm2.py