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 AB6BEC001DC for ; Wed, 19 Jul 2023 23:58:10 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9E73F86885; Thu, 20 Jul 2023 01:52:22 +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="bLVMUkZc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B6A48867CC; Thu, 20 Jul 2023 01:50:45 +0200 (CEST) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (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 283ED86795 for ; Thu, 20 Jul 2023 01:50:40 +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-xd2a.google.com with SMTP id ca18e2360f4ac-7835ffc53bfso7271239f.1 for ; Wed, 19 Jul 2023 16:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810639; x=1690415439; 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=h/YBPUJHYXFi5EuoDmOaWXOstM7pWB9taksBn5b4fEs=; b=bLVMUkZcl8PM/U9oYUk1toFj5d3TtvnH1H4lsPY5GeGEgcoaBanWsx3hQasXBseor+ 3O5TI0KPpr8PtU7oI9swhjAM6jff5UkeCaHF0ZRdCCq12GhdwjgG+yTQEZri2P7Gog6j J77gF/sqUjrYtsD/5xV6qiCSZZ0sJStqjdYT4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810639; x=1690415439; 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=h/YBPUJHYXFi5EuoDmOaWXOstM7pWB9taksBn5b4fEs=; b=LERiU951ugOCAuXXAIR7DWY82lWdFD9pHXKloWAblTE+bJUdY6i+94SK590X/Xyj0x rapC0633IyE15WAJf2MHafGJa2NKFkK3ATxGCsBoXK2oTy3VaTfFv7JmGvxVJDMJV1/3 4LNnxa/ylOCwvrgauKu2IKK8gAsjsVyq3kGQ5Px72LQ5XBludXieAwNPs0JQhNib1/Sn yQZHb5+mrmMX9tYNv1UFco+6FItluyYxl0KGj4zMLdAjRAHOvk2MZkq4S9eJMIuxtpt7 gAoogpEBgdXAtH/IufvjyTjr28tX4fIVR+J+rm+xlSvIHcoeD2nzRR/NfIhDH0HVgmIj hBNg== X-Gm-Message-State: ABy/qLZAQPfuffW89DkWErD2kY1YEZw4e74f1i5geKgIEU7Rdf1x2A+i 0f0dOyacBcu5mFYcy4f8qWdI1EmP3RrjFsOWvf8= X-Google-Smtp-Source: APBJJlFUWVuMFrH/gFzCHjLGKbKIn1DAQz8ZEXvTFiEOxkmWFl9mLKLtxLkqW4kOXySfi1abtxnDsA== X-Received: by 2002:a5d:9e5a:0:b0:787:1c7f:8abf with SMTP id i26-20020a5d9e5a000000b007871c7f8abfmr2245459ioi.10.1689810638767; Wed, 19 Jul 2023 16:50:38 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:38 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 53/83] buildman: Convert camel case in cmdline.py Date: Wed, 19 Jul 2023 17:49:01 -0600 Message-ID: <20230719234953.796101-54-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 Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/cmdline.py | 2 +- tools/buildman/func_test.py | 2 +- tools/buildman/main.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/buildman/cmdline.py b/tools/buildman/cmdline.py index 7918195bcb38..503c48d769ff 100644 --- a/tools/buildman/cmdline.py +++ b/tools/buildman/cmdline.py @@ -9,7 +9,7 @@ import pathlib BUILDMAN_DIR = pathlib.Path(__file__).parent HAS_TESTS = os.path.exists(BUILDMAN_DIR / "test.py") -def ParseArgs(): +def parse_args(): """Parse command line arguments from sys.argv[] Returns: diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index bd7db1e9c1fb..6b6afe7d1c0b 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -252,7 +252,7 @@ class TestFunctional(unittest.TestCase): result code from buildman """ sys.argv = [sys.argv[0]] + list(args) - options, args = cmdline.ParseArgs() + options, args = cmdline.parse_args() if brds == False: brds = self._boards result = control.do_buildman( diff --git a/tools/buildman/main.py b/tools/buildman/main.py index 9a1d59964ea9..70ab9a482ee1 100755 --- a/tools/buildman/main.py +++ b/tools/buildman/main.py @@ -60,7 +60,7 @@ def run_buildman(): This is the main program. It collects arguments and runs either the tests or the control module. """ - options, args = cmdline.ParseArgs() + options, args = cmdline.parse_args() if not options.debug: sys.tracebacklimit = 0 -- 2.41.0.487.g6d72f3e995-goog