From patchwork Sun Jul 16 00:35:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1808281 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=aU2kicxB; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R3RF52SmJz20c9 for ; Sun, 16 Jul 2023 10:39:53 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A5CDA86631; Sun, 16 Jul 2023 02:38:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="aU2kicxB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2FC5586377; Sun, 16 Jul 2023 02:37:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F26BB86321 for ; Sun, 16 Jul 2023 02:37:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-345f4a3ff76so16639045ab.2 for ; Sat, 15 Jul 2023 17:37:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467854; x=1692059854; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u0kYPTGiLsBWhAFVWmihp4PR/ary8h/dzPB2TryEroo=; b=aU2kicxBy3vItUUJS4IrfFibw0BM1iAbDCQblxcozgy2egmdnu0givy9wmgyrxmQJw 50Ywlcm+5MSwxUCFLNQQCm4CAerPkwxa9xpCJ2UQayjZGk5XuTX2ohDIAmsLYxeF9hJP fs8pF1Rhp9J20wSEz0ivBSYstnio1BGnPcxC4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467854; x=1692059854; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u0kYPTGiLsBWhAFVWmihp4PR/ary8h/dzPB2TryEroo=; b=WcjZMCVpIBXQFGRjhm7Yjnf7dTgsJiXHv3qOXyAxQZad4AEWszXCg27S6BLctHh1ZW ULvUBgXBbmMLfRzM4V/elyaeGjDp00xbSV8hD5abWpAhWxn9AlLVckX8ZTXZf5VgKd1w R35fLoc3EHG7y7JjQXQQ8CPll5cFh6tjdt2hMBwTTIuDmxYMfbHZVUhNKboWVY8/ZQ3U 2B260aD8Akc0TvW2ydndC5lyEFzcTY8h/1Ro2SSfOuUbEfwo3LTeAYlOffRt2JZq0PCw zQQ+tb6d6qORKdsWqZnehTPd+8Q0ebsUq7zt0U5QxCSlj004lM5RF7TAGsagpLLsox5v eErg== X-Gm-Message-State: ABy/qLbRko1wXD7tHatsiavMcm01bpr/EWSeVJdQXMh1TuoktorJuToT fcmLVsr3ZV0NmLqeXTRa4oz0jrDlU4UQ427xMJg= X-Google-Smtp-Source: APBJJlF498CDRvbVzGfyQ87yx4UReJyxLaV0qaCgfbCk+IMcTqxyFJSMtgA7Qd8sjmwtjZXTqhCCsA== X-Received: by 2002:a92:d782:0:b0:346:7329:8e8d with SMTP id d2-20020a92d782000000b0034673298e8dmr7574713iln.8.1689467854640; Sat, 15 Jul 2023 17:37:34 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id t3-20020a05663801e300b0042b52dc77e3sm3510512jaq.158.2023.07.15.17.37.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:34 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 16/81] buildman: Just display a single line for missing maintainers Date: Sat, 15 Jul 2023 18:35:44 -0600 Message-ID: <20230716003718.231903-17-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.455.g037347b96a-goog In-Reply-To: <20230716003718.231903-1-sjg@chromium.org> References: <20230716003718.231903-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean At present we get multiple lines of output when a board has no MAINTAINERS entry: WARNING: no status info for 'bananapi-m2-pro' WARNING: no maintainers for 'bananapi-m2-pro' Suppress the 'status' one since it is implied by the other. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to display a single line for missing maintainers tools/buildman/boards.py | 8 ++++++-- tools/buildman/func_test.py | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py index 8aea6cf2dea6..25fa167b7bed 100644 --- a/tools/buildman/boards.py +++ b/tools/buildman/boards.py @@ -772,8 +772,12 @@ class Boards: for i, params in enumerate(params_list): target = params['target'] - params['status'] = database.get_status(target) - params['maintainers'] = database.get_maintainers(target) + maintainers = database.get_maintainers(target) + params['maintainers'] = maintainers + if maintainers: + params['status'] = database.get_status(target) + else: + params['status'] = '-' params_list[i] = params return database.warnings diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index 1994e42d15c8..7f21746792b6 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -920,7 +920,6 @@ Active aarch64 armv8 - armltd total_compute board2 self.assertEquals(2, len(params_list)) self.assertEquals( ['WARNING: boards/board0/MAINTAINERS: missing defconfig ending at line 4', - "WARNING: no status info for 'board0'", "WARNING: no maintainers for 'board0'"], warnings) # Remove the maintainer line (M:) from a file (this should be fine)