ACK: [PATCH] [act] UBUNTU SAUCE: ubuntu_kernel_selftests: keep executing selftests even if selftests/bpf fail to build
Andrea Righi
andrea.righi at canonical.com
Fri Jun 11 07:35:19 UTC 2021
On Thu, Jun 10, 2021 at 06:40:44PM +0200, Paolo Pisati wrote:
> 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>
Simple and clean way to prevent lots of false-positive test failures.
Looks good to me.
Acked-by: Andrea Righi <andrea.righi 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
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
More information about the kernel-team
mailing list