From 6159187329b56a9b550db193796ae4d76c1a306c Mon Sep 17 00:00:00 2001 From: Olivier Certner Date: Fri, 22 May 2026 16:19:57 +0200 Subject: [PATCH] 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 --- tests/sys/mac/do/Makefile | 1 - tests/sys/mac/do/common.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/sys/mac/do/Makefile b/tests/sys/mac/do/Makefile index 980067ea56e..bfca40efdc8 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 diff --git a/tests/sys/mac/do/common.sh b/tests/sys/mac/do/common.sh index 444a74b4c2a..6c4b138bdac 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