From fbbb50f57093307d972a22ef001670dc92dc8f22 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Fri, 22 Mar 2024 19:50:33 -0700 Subject: [PATCH] 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. --- tests/sys/netgraph/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/netgraph/Makefile b/tests/sys/netgraph/Makefile index 8bf91c68ad6b..36f9943a7312 100644 --- a/tests/sys/netgraph/Makefile +++ b/tests/sys/netgraph/Makefile @@ -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 \