Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52B99C001B0 for ; Wed, 19 Jul 2023 23:53:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BF2FD86807; Thu, 20 Jul 2023 01:50:58 +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="lrEr2D8E"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2076E8679B; Thu, 20 Jul 2023 01:50:18 +0200 (CEST) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 7C3EC867B6 for ; Thu, 20 Jul 2023 01:50:12 +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-io1-xd2f.google.com with SMTP id ca18e2360f4ac-78374596182so9693639f.0 for ; Wed, 19 Jul 2023 16:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810611; x=1690415411; 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=1HPu1uY0hPbzshnt8+W4PK9MuzSZPy+j/NtSOGjUNuA=; b=lrEr2D8EV71xcSK75xT6RK9wXm2qxU9VdhnCgO02E07hK5M6v0WQesgJ7PfkHw7GcE bvdIl4BqmGgs3ZdSJcarhElNNqJWHFWbe6iYNvAjG1aQyagDem7SyELlZl4qvWh65vrB QZE+xFLbZsRYHR6OcnWBmfr5YDsno2CD8QznI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810611; x=1690415411; 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=1HPu1uY0hPbzshnt8+W4PK9MuzSZPy+j/NtSOGjUNuA=; b=gmLLUoNDCBOrJQJGKz4VFIFHrU5M+tMwCcMMooNB23GyiFmcoDbte3lTo7ZA5jxuW7 N7iSl8ZgjkbzLjM60gSf2G9RNRGi0o6Bhp7wUPxSKJ0XRSHEaP2JslImG4FAqbdxZXji KWVc1BWoA0/A2hyDOxqfntQ7eG9ugr3CrUrREDqaFelQxhZCrvrkRxpsdiquoWZ/br0q 2CWr3eeNm6Fi7XXK1Im4e4YUTGZy61tpqEOO68/WWoAGRWYm7QPtg80+Tquq8Ovr6Q3f iUAWvNKTl/VQPuhSRatLiqTZbfgez6zcnXnpmv+6AfFuhYq0viKQjEsPdE1n/HqcpaEg M6wg== X-Gm-Message-State: ABy/qLbVqVQWbgsVPCFPPZOuoLve4ps8L4l8sMBZjkuOABIyNrqnWY6J Es+mEb5pporr+UPXMfrm9aUxQOvYBAjob5kYRG4= X-Google-Smtp-Source: APBJJlHodFsoy18szqYYCdsUnbCntQ6BFwpidSBM8D/QRzwDUNpVdBnMNDkQhAvhK9eqUvD8wfNmBg== X-Received: by 2002:a6b:6101:0:b0:783:65ba:8614 with SMTP id v1-20020a6b6101000000b0078365ba8614mr6783068iob.10.1689810611079; Wed, 19 Jul 2023 16:50:11 -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 ed16-20020a056638291000b0042bb1779c18sm1551779jab.151.2023.07.19.16.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:10 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 16/83] buildman: Just display a single line for missing maintainers Date: Wed, 19 Jul 2023 17:48:24 -0600 Message-ID: <20230719234953.796101-17-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230719234953.796101-1-sjg@chromium.org> References: <20230719234953.796101-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- (no changes since v3) 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 bf396574e227..422f3476b011 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 164dd7c620a2..149551e6f33c 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: orphaned defconfig in boards/board0/MAINTAINERS 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) -- 2.41.0.487.g6d72f3e995-goog