| Message ID | 20260404213020.372253-2-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775338242; bh=FRbwitre+Dj3ChHjXas/Tj748Myjc9NUjJtb/byhaJQ=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=jjBf31N6aY0BON8idwr+wBQqBOsUGjgCScVFiQZRacE/iGM8MLe4G/vTkBAIO5p/L QAN96YaOBK51wb6LLygFqhRk1zpFRyt7tl+y/nnnOz4KDdVXqrUp0pgpN6xCArwslJ AWJSZGTFAAzcQBR3umZ2rhFAsvMcdAADkkW0SFFB7j2fS0JiZmdNLRMhHaV7Duo354 rPPKrYXX/qy3h3omG5rV2hA8lP8SDNWaE/2MuQerd7CPTKAcGrRKiWRFzaFDOSFRqt y4tJhhyVeq6YAZYPyMD60BoO4+aEzxsxZkEU3PBE0QFrFMrrf5/Tcv7xkKQr15iJTU rU6uiDTxvUouw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 378656A376 for <u-boot-concept@u-boot.org>; Sat, 4 Apr 2026 15:30:42 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id y0-rsLvtG5NZ for <u-boot-concept@u-boot.org>; Sat, 4 Apr 2026 15:30:42 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775338242; bh=FRbwitre+Dj3ChHjXas/Tj748Myjc9NUjJtb/byhaJQ=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=jjBf31N6aY0BON8idwr+wBQqBOsUGjgCScVFiQZRacE/iGM8MLe4G/vTkBAIO5p/L QAN96YaOBK51wb6LLygFqhRk1zpFRyt7tl+y/nnnOz4KDdVXqrUp0pgpN6xCArwslJ AWJSZGTFAAzcQBR3umZ2rhFAsvMcdAADkkW0SFFB7j2fS0JiZmdNLRMhHaV7Duo354 rPPKrYXX/qy3h3omG5rV2hA8lP8SDNWaE/2MuQerd7CPTKAcGrRKiWRFzaFDOSFRqt y4tJhhyVeq6YAZYPyMD60BoO4+aEzxsxZkEU3PBE0QFrFMrrf5/Tcv7xkKQr15iJTU rU6uiDTxvUouw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 26EAC6A361 for <u-boot-concept@u-boot.org>; Sat, 4 Apr 2026 15:30:42 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775338241; bh=v1e8V+MEGLIJSDBxa/EGrUDfMCc6V3ITE54qUrOBW6E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vgzN2gaASaJQpU29h8BpjPKV5ZZ5qqVzyZeGtwNFaghyk4Bu0jea/zUly7xWZyYwe tuAgkWIe8c+v28vUnctg/v3PZfg/Xg4keLtFD4kEh9cI1xCkUu5g6OMf+uYjj97SC5 eENuyy6hlh6kf3d4WZXA0Pj6UB8qvmXtsotH/m3tQZsNgsCFvetN4Ahy11ryGlH84r GoBIGt3KVX6HEOX4wHFxVPC/r5ACbLr97RBhQgCPacNsCVDECqKy99edN2b6SAdTUG nZT9m8Ss3KugMAbxKg3D2t91nXgNJ9dqH17FxsZmXqztHcwKizdlztIHam7JQxtGVN 6MlJl8edAmDbQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 684926869D; Sat, 4 Apr 2026 15:30:41 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id MCea1kZxNzXf; Sat, 4 Apr 2026 15:30:41 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775338237; bh=vnog4fa5TdWTp3XLLoWz6bvtkNjWgyEbmMOqwP2SN1o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iMD2RT5VV3fEv2gyo24PLi7WTwFkQffAMx/rfERWdzm5a0fJVHuZa+5Sn93pbSDcT jXQb6eGisrIUE7zYuAT8mHNtti0JWCe8KiZbtLj55edzER5c9bI37QDrwCCFpE5lSr EjIhcrzWbjg+VuN91TaAj8Y+IlMzufTSU/8/JJl7xjab47Vj6xBbhpHC24Kf05rNrG 6RBWIf02PC7K3G+Rw9Pkx2DUvzYnBBwfkoVUVPar+WCA/sP+F5PXZa0rHSUmzw2oFW wb9gBinb1I0KzfKvXDUYhzmJsL6yblCkQZiccZ287mWT9ymyBMN/vDDtz83flHABFF RvgTcXU+vUOqA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 0E93F6A385; Sat, 4 Apr 2026 15:30:37 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Sat, 4 Apr 2026 15:28:37 -0600 Message-ID: <20260404213020.372253-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260404213020.372253-1-sjg@u-boot.org> References: <20260404213020.372253-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: AZITUVJZ2OOKELIRVCDUGDC57V2RL7VE X-Message-ID-Hash: AZITUVJZ2OOKELIRVCDUGDC57V2RL7VE X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 01/37] patman: Send unknown-setting warnings to stderr List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/AZITUVJZ2OOKELIRVCDUGDC57V2RL7VE/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
patman: Autolink fixes and AI-assisted patch review
|
|
Commit Message
Simon Glass
April 4, 2026, 9:28 p.m. UTC
From: Simon Glass <sjg@chromium.org> The warning for unknown settings in the user's config file is printed to stdout, which contaminates the help output and causes test_full_help to fail when the config has settings for future features. Send the warning to stderr instead, and allow the test to tolerate WARNING lines on stderr so that environment-specific warnings do not cause test failures. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/patman/func_test.py | 4 +++- tools/patman/settings.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index b1f37577643..6233957becd 100644 --- a/tools/patman/func_test.py +++ b/tools/patman/func_test.py @@ -635,7 +635,9 @@ diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c extra = '::::::::::::::\n' + help_file + '\n::::::::::::::\n' gothelp = result.stdout.replace(extra, '') self.assertEqual(len(gothelp), os.path.getsize(help_file)) - self.assertEqual(0, len(result.stderr)) + unexpected = [l for l in result.stderr.splitlines() + if not l.startswith('WARNING:')] + self.assertEqual(0, len(unexpected)) self.assertEqual(0, result.return_code) def test_help(self): diff --git a/tools/patman/settings.py b/tools/patman/settings.py index 17229e0d823..17996b5dd30 100644 --- a/tools/patman/settings.py +++ b/tools/patman/settings.py @@ -307,7 +307,7 @@ def _UpdateDefaults(main_parser, config, argv): val = config.get('settings', name) defaults[name] = val else: - print("WARNING: Unknown setting %s" % name) + print("WARNING: Unknown setting %s" % name, file=sys.stderr) if 'cmd' in defaults: del defaults['cmd'] if 'subcmd' in defaults: