aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2026-05-22 14:19:57 +0000
committerOlivier Certner <olce@FreeBSD.org>2026-05-29 15:41:24 +0000
commit6159187329b56a9b550db193796ae4d76c1a306c (patch)
tree4271e4265c0e1d5a00f16d24ebdc112e595353fb
parentb0c948fe92acc8bd295cc53584e25c082c749cd1 (diff)
MAC/do: Tests: Declare required programs closer to use
Reviewed by: bapt MFC after: 3 days Sponsored by: The FreeBSD Foundation Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/38
-rw-r--r--tests/sys/mac/do/Makefile1
-rw-r--r--tests/sys/mac/do/common.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/sys/mac/do/Makefile b/tests/sys/mac/do/Makefile
index 980067ea56e6..bfca40efdc8d 100644
--- a/tests/sys/mac/do/Makefile
+++ b/tests/sys/mac/do/Makefile
@@ -9,6 +9,5 @@ ${PACKAGE}FILES+= common.sh
TEST_METADATA+= execenv="jail"
TEST_METADATA+= required_kmods="mac_do"
TEST_METADATA+= required_user="root"
-TEST_METADATA+= required_programs="sysctl"
.include <bsd.test.mk>
diff --git a/tests/sys/mac/do/common.sh b/tests/sys/mac/do/common.sh
index 444a74b4c2ab..6c4b138bdac0 100644
--- a/tests/sys/mac/do/common.sh
+++ b/tests/sys/mac/do/common.sh
@@ -69,5 +69,7 @@ sysctl_set_and_check_fails_rules()
sysctl_set_and_check_rules_common sysctl_set_and_check_fails "$value"
}
+atf_require_prog sysctl
+
# Do not pollute kernel logs with parse errors
sysctl $PPE_KNOB=0 >/dev/null 2>&1