Message ID | 5734b04e93f6ce2212a81963d8a0e79500f942c3.1624911306.git.yann.morin.1998@free.fr |
---|---|
State | Accepted |
Headers | show
Return-Path: <buildroot-bounces@busybox.net> X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=iy5Tuign; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GDJl85JZYz9sX3 for <incoming-buildroot@patchwork.ozlabs.org>; Tue, 29 Jun 2021 06:15:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 6BBF540333; Mon, 28 Jun 2021 20:15:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ydMLWPuIbcTC; Mon, 28 Jun 2021 20:15:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id CE49340375; Mon, 28 Jun 2021 20:15:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id E34CE1BF2B0 for <buildroot@lists.busybox.net>; Mon, 28 Jun 2021 20:15:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id D2A8940265 for <buildroot@lists.busybox.net>; Mon, 28 Jun 2021 20:15:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F7Wts6xIV5vq for <buildroot@lists.busybox.net>; Mon, 28 Jun 2021 20:15:19 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by smtp2.osuosl.org (Postfix) with ESMTPS id 297A94025F for <buildroot@buildroot.org>; Mon, 28 Jun 2021 20:15:19 +0000 (UTC) Received: by mail-wr1-x432.google.com with SMTP id y3so3369544wrq.3 for <buildroot@buildroot.org>; Mon, 28 Jun 2021 13:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vq2sGe8l/lYH2VjAIIeAJe1hNm2Iigf9Zhi3Na21Tlc=; b=iy5Tuignl3bSERQuudl/ebX6/hYakx/gQRBECr6xNrVUyOsF1Tesu466qIqt14xiPZ QdnMLWHlrRTENiGKTgAh4Y+juzvLn6abxeUZVV4lTfK0CSaHeS+71WBXo36RJxVInIeA EyHeoZvsnu+tWMjxeeBz0l6/ZacXvQRTSiVuUAsmhtRUX25aEoS5NkzxK9Hi5zxwosml LrS0qUxy5eaUvicwlaB4pk3aL2LGZbQcPfprcAW2l+th9QakFYXYNbItVWqwXs1kVWy/ 5WtLji0dSHEh7GTzrqqEgwBqdh34aHQ3Xqt3Nk+Ya4vlIFmm0s4GsYIz0+SkYrvf3Kok LuNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=vq2sGe8l/lYH2VjAIIeAJe1hNm2Iigf9Zhi3Na21Tlc=; b=UCxo6JI8iwZfhaG8NV19rlO33uPuIyCsl0vEARt3BZ3ZKpQyxVEuWEGtdwrXOz8FHm aHERUQE+Q91O+rqhfdmleUJMyzu/0O5fdf85qQ3TtvdmsZCfoi3+HGtT9cSE6eJUlPXE zkQW5tK0JmQE4XZwViQT3g+Cx/g2i/HJkeIqf1oTAjCJNDq3JMkYf6HTz6vrLrSb3okG 9gIdvSIMJPgl7ciyvjiFzOtFW/CqSBikRD0qzaFm0/zxiXKOPSVbCd7Bu802CHmePtfS 7o37rI9vjcF2W2+wDi2GUQxMdTeyll1/lyozDL9rXfiXZgAm4ujxdKHjy7/SoiwDJrIQ hJjQ== X-Gm-Message-State: AOAM530GZzCNbQNY8tFRRXh5KZQY5vGwqTHGyaSwVAfDzWHwE7ws8kPc jWvUnEM65haByhYOQez6eDCy4hLPdjU= X-Google-Smtp-Source: ABdhPJwaknEQuqdO/fyOiiXEGcxKvw7o/C9bvpPllCbX81T2Vbw1RSZP3r6OF+XD6OUwp9RY/AbBcQ== X-Received: by 2002:adf:f1d0:: with SMTP id z16mr30061955wro.307.1624911317490; Mon, 28 Jun 2021 13:15:17 -0700 (PDT) Received: from scaer.home ([2a01:cb19:8b51:cb00:4096:d846:2edb:69d9]) by smtp.gmail.com with ESMTPSA id y7sm482505wma.22.2021.06.28.13.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 13:15:17 -0700 (PDT) From: "Yann E. MORIN" <yann.morin.1998@free.fr> To: buildroot@buildroot.org Date: Mon, 28 Jun 2021 22:15:13 +0200 Message-Id: <5734b04e93f6ce2212a81963d8a0e79500f942c3.1624911306.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1624911306.git.yann.morin.1998@free.fr> References: <cover.1624911306.git.yann.morin.1998@free.fr> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/4 v5] utils/test-pkg: remove configurations that are skipped X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot <buildroot.busybox.net> List-Unsubscribe: <http://lists.busybox.net/mailman/options/buildroot>, <mailto:buildroot-request@busybox.net?subject=unsubscribe> List-Archive: <http://lists.busybox.net/pipermail/buildroot/> List-Post: <mailto:buildroot@busybox.net> List-Help: <mailto:buildroot-request@busybox.net?subject=help> List-Subscribe: <http://lists.busybox.net/mailman/listinfo/buildroot>, <mailto:buildroot-request@busybox.net?subject=subscribe> Cc: Romain Naour <romain.naour@gmail.com>, "Yann E. MORIN" <yann.morin.1998@free.fr>, Thomas Petazzoni <thomas.petazzoni@bootlin.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" <buildroot-bounces@busybox.net> |
Series |
gitlab-ci: allow running test-pkg (branch yem/test-pkg-in-gitlab-ci)
|
expand
|
diff --git a/utils/test-pkg b/utils/test-pkg index a317d8c17a..54c6c5e8fe 100755 --- a/utils/test-pkg +++ b/utils/test-pkg @@ -161,6 +161,10 @@ build_one() { # done in the same locale. comm -23 <(sort "${cfg}") <(sort "${dir}/.config") >"${dir}/missing.config" if [ -s "${dir}/missing.config" ]; then + if [ ${keep} -ne 1 ]; then + # Invalid configuration, drop it + rm -f "${dir}/.config" + fi return 1 fi # Remove file, it's empty anyway.
When the config fragment provided by the user is not usable with a specific toolchain configuration, the resulting .config file was kept around. In a follow up commit, we'll need to know, from outside test-pkg, if a specific configuration was indeed usable or not. So, unless if the user actually requested to keep the build directories, remove the .config file when it contains a configration that would be skipped. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Romain Naour <romain.naour@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> --- v5: new patch --- utils/test-pkg | 4 ++++ 1 file changed, 4 insertions(+)