From patchwork Fri Apr 19 02:36:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1925343 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; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=aeciGdsl; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VLJgp3cXxz1yZZ for ; Fri, 19 Apr 2024 12:36:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 26029886A0; Fri, 19 Apr 2024 04:36:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aeciGdsl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B13698866E; Fri, 19 Apr 2024 04:36:39 +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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (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 7FE32885BD for ; Fri, 19 Apr 2024 04:36:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-4349bba0ba3so10486491cf.3 for ; Thu, 18 Apr 2024 19:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713494195; x=1714098995; darn=lists.denx.de; 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=xqJv7fkbPBtOWGZVHdqZMoboqLGmhCm2bZE6jXhXCfw=; b=aeciGdslQ4+t3hQfxoMOp9lIn6mORK+7gu7AiOtDCwo7OmjRPzXrAAo/iS4Gu86rw+ oPaQJMbEP4mD0QI1rzEYdAL5K+bGq3sBEvWZqD17DsSAK/TI+opDaZBtvgzLA5hfHivf L41X/5X4OIvDN4mL2bfpviDOoZeSW9RXo52Sde9n2DcjL5FrIGzs/qKjRdaDeXt/JvkN hieDxvNcJQ8ezpTR49aN6836vKMo8FhDPc/T7N1i5wX6ALGSeslC9VvFhYhUiy56G/gd rOaKnr+d6U99mClV6X0vqRtmRlURBAxBtctdLwJjp+2Nckswm0HgEySUFLNE+LZljS3R cnWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713494195; x=1714098995; 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=xqJv7fkbPBtOWGZVHdqZMoboqLGmhCm2bZE6jXhXCfw=; b=Q1LqwHRSn8z0osWvRz2EUgPhSTyEmU678fDuxUCQuAZ6xoYNQh5lupy4iMnz3Wiujv F+rwAA3FGTcSnqoEikzlPtkkWlim17PKnI2Gc+WKCKVWTRdlPzzfCrCFXwIUMcTCxNlX 9YYeYw1BR3RtfCv+fdchCSc9XLU6ACQTInI8XeJkxY/kTSjQQhDr/cJghBwVmK1xLuXo /xfZYD/ExyWxARfWMPxqUvVcY9GnecJrUSH2OMQFLGKz2892U0ooGb8wH5fcWeAh8Mef WP+kBgwrSHg1pchTVRscBZ/Ak8mySCacRWmku3uI406MZ4qBdMAcn/g4qTAKKZ2ju3pP zstA== X-Gm-Message-State: AOJu0YyuSMIDhhnurKzSEjsx3OYNiZ+GdjpSZJAxwjU/4+cxVb+Lxr5x BBoK86DdOXIUOF1a9jIbYTFSvXwKKEQqD/M8fYPQmCkkfOwJbGZ7YrppLg== X-Google-Smtp-Source: AGHT+IGDpPchgT6Sd0NVW01nBZid0VWDR8oF1MbM06hNMi0H0yxei8YD85tuIIZFh/aLInPPut36pQ== X-Received: by 2002:a0c:da0f:0:b0:6a0:5528:9594 with SMTP id x15-20020a0cda0f000000b006a055289594mr729007qvj.64.1713494195697; Thu, 18 Apr 2024 19:36:35 -0700 (PDT) Received: from localhost (pool-108-48-157-169.washdc.fios.verizon.net. [108.48.157.169]) by smtp.gmail.com with UTF8SMTPSA id g2-20020a0cdf02000000b0069b447066bbsm1181155qvl.78.2024.04.18.19.36.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Apr 2024 19:36:35 -0700 (PDT) From: Sean Anderson To: u-boot@lists.denx.de, Simon Glass Cc: Sean Anderson Subject: [PATCH 1/3] patman: Fix tests if add_maintainers is set to False Date: Thu, 18 Apr 2024 22:36:30 -0400 Message-Id: <20240419023632.29078-2-seanga2@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240419023632.29078-1-seanga2@gmail.com> References: <20240419023632.29078-1-seanga2@gmail.com> 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 If add_maintainers is set to False in the user's ~/.patman config, it will cause the custom_get_maintainer_script to fail since that test expects maintainers to be added. Set add_maintainer to True in the .patman config to prevent this. Fixes: 8c042fb7f9f ("patman: add '--get-maintainer-script' argument") Signed-off-by: Sean Anderson Reviewed-by: Simon Glass Reviewed-by: Simon Glass --- tools/patman/func_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index e3918497cf4..9c016fb5e9a 100644 --- a/tools/patman/func_test.py +++ b/tools/patman/func_test.py @@ -540,7 +540,8 @@ complicated as possible''') with open('.patman', 'w', buffering=1) as f: f.write('[settings]\n' 'get_maintainer_script: dummy-script.sh\n' - 'check_patch: False\n') + 'check_patch: False\n' + 'add_maintainers: True\n') with open('dummy-script.sh', 'w', buffering=1) as f: f.write('#!/usr/bin/env python\n' 'print("hello@there.com")\n')