HomeFreeBSD

pf tests: Only do post-test logging when specifically enabled

Description

pf tests: Only do post-test logging when specifically enabled

The pf tests have the ability to log state information (pf rules, pf
states, interfaces, ...) on exit (i.e. on success or on error).
This is useful, but only in specific cases. When it's not needed it may
get in the way of clear output.

Test scripts can add 'debug' to the pft_init call to enable this for the
specified test.

Reviewed by: brd
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D34133

Details

Provenance
kpAuthored on Feb 1 2022, 5:33 PM
Reviewer
brd
Differential Revision
D34133: pf tests: Only do post-test logging when specifically enabled
Parents
rG109418996514: pf tests: Test adding counters to an existing table
Branches
Unknown
Tags
Unknown