aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2024-03-23 02:50:33 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2024-03-23 02:50:33 +0000
commitfbbb50f57093307d972a22ef001670dc92dc8f22 (patch)
tree60a2e8b11ff1048c1cd926e7524c8d7ded9f9a9a
parentacbc176c3dfdfebd047507dc7d843f8cc10984a8 (diff)
downloadsrc-fbbb50f57093307d972a22ef001670dc92dc8f22.tar.gz
src-fbbb50f57093307d972a22ef001670dc92dc8f22.zip
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.
-rw-r--r--tests/sys/netgraph/Makefile2
1 files changed, 1 insertions, 1 deletions
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 \