Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 2026 10:00:54 +0000
From:      Olivier Certner <olce@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3a9e6cc05ae3 - stable/14 - MAC/do: Tests: Declare required programs closer to use
Message-ID:  <6a61e656.3b4f2.36830bcd@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by olce:

URL: https://cgit.FreeBSD.org/src/commit/?id=3a9e6cc05ae329f646cfeaea0d499a6a6f4807af

commit 3a9e6cc05ae329f646cfeaea0d499a6a6f4807af
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-05-22 14:19:57 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-07-23 09:59:09 +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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a61e656.3b4f2.36830bcd>