tests/netgraph: mark all tests as required_user="root"

Any netgraph operation requires root priveleges.  Some tests in the
directory already mark themselves with 'atf_tc_set_md_var(conf,
"require.user", "root");' which creates a lot of pasted code.  Some tests
don't mark self.  For this particular directory a blanket metadata setting
in the Makefile is acceptable, imho.
This commit is contained in:
Gleb Smirnoff 2024-03-22 19:50:33 -07:00
parent acbc176c3d
commit fbbb50f570

View File

@ -8,7 +8,7 @@ TAP_TESTS_SH+= ng_macfilter_test
# Serialize tests since some share netgraph node names.
TEST_METADATA+= is_exclusive=true
TEST_METADATA.ng_macfilter_test+= required_user="root"
TEST_METADATA+= required_user="root"
TEST_METADATA.ng_macfilter_test+= required_programs="perl"
ATF_TESTS_C+= basic \