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 CD5F9C001DC for ; Wed, 19 Jul 2023 23:53:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 25485867F1; Thu, 20 Jul 2023 01:51:00 +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="aaBV7IXu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E2F78679B; 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 4F82086772 for ; Thu, 20 Jul 2023 01:50: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=sjg@chromium.org Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-78372625badso8525039f.3 for ; Wed, 19 Jul 2023 16:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810612; x=1690415412; 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=OBCSx8fovAoE7iMii1dOe2NaH5OUwLFpUJewM0nfH/U=; b=aaBV7IXu7EjqYk2Qd8BBRWyQbOgDu7g7Pw6Hq7YzE80+4MdYLUx514o10P7EIgjBaa E4HtdYd0sekOrs4Rhy6b4pOdUMNk+xhDCTCfy3aGxGBDyjoIsJPS+0lmESp/T3xjOvzg utT2lGbNnWHfz/rakRw6DbA0Jck+TxREAwu2w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810612; x=1690415412; 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=OBCSx8fovAoE7iMii1dOe2NaH5OUwLFpUJewM0nfH/U=; b=Qc0b9DAI1oXDb5VLL5hEAcHe3riPPHpelUk+0bD3jkSpeYEaHnxargZYwCOpgnWMwS TF4KSjKNIJ7JtRcmBqJ6GG5k1GXhx6E6eA1fC7B37B+sxhxq8mDxRwIAfgCgOeKGc3Np Jm2f1CZ/XP2qTKnmraR9DZ9HU/NPvU0WwdWtalJYxfXjPC+jac1uQyeXbEoVUTNO83pu Ay6q40H9DS3U8Is7ydTVDGRp8VBgBK9zOOXX2Uwq+pOZg4QCvUTClwM2veI/HTgCvhqx ajfaXCYpm49n49aOVR2G/qUh6UmRNfNX5HFPD2MERBvj1m3EWqs+sRaO5fTOO3HEeaHQ pkqw== X-Gm-Message-State: ABy/qLb3hy/EzSdaI/aENvIs94HtAHVNnqJUaMKwBMHkTMGfaXXdC09k 58FOyICt91/VlhtTcwnBhgQ9gJ9pjIIhPjEbHz0= X-Google-Smtp-Source: APBJJlHMa1nGEj4/LPF8rrA1okPFI9YWq+xyT+tmBZatTvDrIVrCrXyZPV0ifRZBglXJYGItGBzICw== X-Received: by 2002:a5e:c006:0:b0:783:6272:afbb with SMTP id u6-20020a5ec006000000b007836272afbbmr4141347iol.9.1689810611776; 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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:11 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 17/83] buildman: Sort the maintainer warnings Date: Wed, 19 Jul 2023 17:48:25 -0600 Message-ID: <20230719234953.796101-18-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 Sort the warnings into alphabetical order, for easier reading. Also make sure that the buildman test files are ignored. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to sort the maintainer warnings tools/buildman/boards.py | 4 ++-- tools/buildman/func_test.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py index 422f3476b011..269cafa6adc7 100644 --- a/tools/buildman/boards.py +++ b/tools/buildman/boards.py @@ -766,7 +766,7 @@ class Boards: """ database = MaintainersDatabase() for (dirpath, _, filenames) in os.walk(srcdir): - if 'MAINTAINERS' in filenames: + if 'MAINTAINERS' in filenames and 'tools/buildman' not in dirpath: database.parse_file(srcdir, os.path.join(dirpath, 'MAINTAINERS')) @@ -779,7 +779,7 @@ class Boards: else: params['status'] = '-' params_list[i] = params - return database.warnings + return sorted(database.warnings) @classmethod def format_and_output(cls, params_list, output): diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index 149551e6f33c..c962083a43fb 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -919,8 +919,9 @@ Active aarch64 armv8 - armltd total_compute board2 params_list, warnings = self._boards.build_board_list(config_dir, src) self.assertEquals(2, len(params_list)) self.assertEquals( - ['WARNING: orphaned defconfig in boards/board0/MAINTAINERS ending at line 4', - "WARNING: no maintainers for 'board0'"], warnings) + ["WARNING: no maintainers for 'board0'", + 'WARNING: orphaned defconfig in boards/board0/MAINTAINERS ending at line 4', + ], warnings) # Remove the maintainer line (M:) from a file (this should be fine) lines = [line for line in orig_data.splitlines(keepends=True) -- 2.41.0.487.g6d72f3e995-goog