From 274dbe9fbb457b677bb213f771f0e9d44840d4f4 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Mon, 19 Jul 2021 14:06:08 -0700 Subject: [PATCH] ci/testcases: check for nftables support in kernels used by main & community devices (MR 2366) --- .gitlab-ci/testcases/test_kernel.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci/testcases/test_kernel.py b/.gitlab-ci/testcases/test_kernel.py index fe4c3c07d..f591d0c5a 100644 --- a/.gitlab-ci/testcases/test_kernel.py +++ b/.gitlab-ci/testcases/test_kernel.py @@ -33,3 +33,10 @@ def test_aports_kernel(args): " not be explicitly specified in makedepends!" " pmbootstrap installs cross-compiler" " automatically.") + + # nftables support in kernels used by main and community devices + for dir in ["main", "device/main", "device/community"]: + if path.startswith(f"{args.aports}/{dir}"): + assert pmb.parse.kconfig.check(args, + aport_name.replace("linux-", ""), + force_nftables_check=True)