Message ID | 20220630140742.3.I7a1d18f39af70389a687dedef421cda4d0ae35a9@changeid |
---|---|
State | Superseded |
Delegated to: | Simon Glass |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=jdBIMmPv; dkim-atps=neutral Authentication-Results: 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=<UNKNOWN>) 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LYrYq60KJz9sFx for <incoming@patchwork.ozlabs.org>; Fri, 1 Jul 2022 07:09:35 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 65C1A8447A; Thu, 30 Jun 2022 23:08:55 +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="jdBIMmPv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 11A7E8440C; Thu, 30 Jun 2022 23:08:51 +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.5 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-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (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 945518441B for <u-boot@lists.denx.de>; Thu, 30 Jun 2022 23:08:48 +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=dianders@chromium.org Received: by mail-pl1-x62f.google.com with SMTP id m14so484821plg.5 for <u-boot@lists.denx.de>; Thu, 30 Jun 2022 14:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tG5CQeG3mLT29kXtg1qfq593/tsHFul7vSDGg/eizR4=; b=jdBIMmPvTooyr6v5FmANVH6OxJxryYx7ie2rY1xpFRovWH1AxrfeInH2DfBj+8xUs2 GOMV/x21bB3ayS8Dn0kYbWjHCDl/dbOM+dTVnT9f0MNXXRW2vYaytYrdyeeffkgj/Pw4 ZgIrv2XO4Q64tBxr0ZvRU7lTAj5S9j3EtSbNY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tG5CQeG3mLT29kXtg1qfq593/tsHFul7vSDGg/eizR4=; b=LoJrofGArT94P4J4Utbh2oqY4E98lDrr5oc+YnEDwj5Q9SjjKcEAKf48qb+oM6934O 1giNdoa3mVvSx+BycSFtqd2F+muFQKoXVW3ugmu2FVzVcEmWmO/Pe/K0JvsjAjztCc9p 60Vb2nv+fL5nNo5sdKAf9qewtox5rFSnWs5bZOWazZLYB+2V72faI5w+dsaUByyBECBS mTPIz4k4MXsx1pY36FiPTGuZBvbua34aDVTQXDrNQ5lgXXnTZKIe/3cd3Cy8dcOi6SX8 7jyGBYReFSn81SP7uRB5TqhDM1HWtFzy8AH4FBGVBZ6svIACioJwl8vs+nVVFZACcWp0 xbOg== X-Gm-Message-State: AJIora+/51BsCSHRA1ik0qiTIfMm67uNrr9fK2Li/gdUREgdSrUoyVLL a7wTleuS+l+183tGjnDZGTVs2g== X-Google-Smtp-Source: AGRyM1u52FWDeBqwHA30uWIRphYZfLSqXVrn8sOdCefsMBMoJhrpMoe2RkRdL/77CThvRzIE8dn/sw== X-Received: by 2002:a17:902:d551:b0:16a:2a58:debe with SMTP id z17-20020a170902d55100b0016a2a58debemr17315927plf.65.1656623326931; Thu, 30 Jun 2022 14:08:46 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:51e0:26ee:1fe0:ebe1]) by smtp.gmail.com with ESMTPSA id b1-20020a1709027e0100b001641b2d61d4sm14074086plm.30.2022.06.30.14.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 14:08:46 -0700 (PDT) From: Douglas Anderson <dianders@chromium.org> To: sjg@chromium.org Cc: briannorris@chromium.org, amstan@chromium.org, mka@chromium.org, Douglas Anderson <dianders@chromium.org>, u-boot@lists.denx.de Subject: [PATCH 3/6] patman: Don't look at sys.argv when parsing settings Date: Thu, 30 Jun 2022 14:08:06 -0700 Message-Id: <20220630140742.3.I7a1d18f39af70389a687dedef421cda4d0ae35a9@changeid> X-Mailer: git-send-email 2.37.0.rc0.161.g10f37bed90-goog In-Reply-To: <20220630210809.2261698-1-dianders@chromium.org> References: <20220630210809.2261698-1-dianders@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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
patman: Small fixes plus remove --no-tree from checkpatch for linux
|
expand
|
diff --git a/tools/patman/settings.py b/tools/patman/settings.py index 5eefe3d1f55e..92d82d5e8682 100644 --- a/tools/patman/settings.py +++ b/tools/patman/settings.py @@ -248,7 +248,7 @@ def _UpdateDefaults(main_parser, config): # Collect the defaults from each parser for parser in parsers: - pdefs = parser.parse_known_args()[0] + pdefs = parser.parse_known_args([])[0] defaults = dict(vars(pdefs)) # Go through the settings and collect defaults
If you call the parser and tell it to parse but don't pass arguments in then it will default to looking at sys.argv. This isn't really what was intended and seems to have some side effects. Let's not do it. NOTE: to see some of the side effects, note that this patch breaks "patman -c1" if you don't have the patch ("patman: Fix implicit command inserting") before it. Signed-off-by: Douglas Anderson <dianders@chromium.org> --- tools/patman/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)