[PATCH] [act] UBUNTU SAUCE: ubuntu_kernel_selftests: keep executing selftests even if selftests/bpf fail to build

Paolo Pisati paolo.pisati at canonical.com
Thu Jun 10 16:40:44 UTC 2021


On recent kernel releases (5.13+), kernel selftests/bpf depends on an
unreleased clang version (clang-13) and FTBFS otherwise: make selftests
continue even if selftests/bpf fail to build.

Signed-off-by: Paolo Pisati <paolo.pisati at canonical.com>
---
 ubuntu_kernel_selftests/ubuntu_kernel_selftests.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
index 0f4c46d2..a4b38a0b 100644
--- a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
+++ b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
@@ -223,7 +223,8 @@ class ubuntu_kernel_selftests(test.test):
                 os.environ["LLVM_OBJCOPY"] = "llvm-objcopy-9"
                 os.environ["LLVM_READELF"] = "llvm-readelf-9"
             cmd = "make -C linux/tools/testing/selftests TARGETS=bpf SKIP_TARGETS= KDIR=/usr/src/linux-headers-{}".format(platform.release())
-            utils.system(cmd)
+            # keep running selftests/net, even if selftests/bpf build fails
+            utils.system(cmd, ignore_status=True)
         cmd = "sudo make -C linux/tools/testing/selftests TARGETS=%s run_tests" % test_name
         self.results = utils.system_output(cmd, retain_output=True)
 
-- 
2.31.1




More information about the kernel-team mailing list