git: f4b3983c817a - stable/15 - MAC/do: Tests: Declare required programs closer to use
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Jun 2026 20:26:21 UTC
The branch stable/15 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=f4b3983c817a29d4b796ffe9ee301090a495127c
commit f4b3983c817a29d4b796ffe9ee301090a495127c
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-05-22 14:19:57 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-06-09 20:25:52 +0000
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
(cherry picked from commit 6159187329b56a9b550db193796ae4d76c1a306c)
---
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 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