From patchwork Thu Jun 10 16:40:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Pisati X-Patchwork-Id: 1490599 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G18qR3M7Vz9sWQ; Fri, 11 Jun 2021 02:40:51 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1lrNja-0008Oi-HY; Thu, 10 Jun 2021 16:40:46 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lrNjY-0008Oc-Qb for kernel-team@lists.ubuntu.com; Thu, 10 Jun 2021 16:40:44 +0000 Received: from 1.general.ppisati.uk.vpn ([10.172.193.134] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lrNjY-00035E-FG for kernel-team@lists.ubuntu.com; Thu, 10 Jun 2021 16:40:44 +0000 From: Paolo Pisati To: kernel-team@lists.ubuntu.com Subject: [PATCH] [act] UBUNTU SAUCE: ubuntu_kernel_selftests: keep executing selftests even if selftests/bpf fail to build Date: Thu, 10 Jun 2021 18:40:44 +0200 Message-Id: <20210610164044.91134-1-paolo.pisati@canonical.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" 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 Acked-by: Andrea Righi Acked-by: Po-Hsu Lin --- 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)