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 DA534C19F28 for ; Sun, 31 Jul 2022 02:57:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 075B884208; Sun, 31 Jul 2022 04:57:34 +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="M8f4tC6G"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF98A84221; Sun, 31 Jul 2022 04:57:31 +0200 (CEST) Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) (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 378DB841F4 for ; Sun, 31 Jul 2022 04:57:29 +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-oa1-x2c.google.com with SMTP id 586e51a60fabf-f2a4c51c45so9985839fac.9 for ; Sat, 30 Jul 2022 19:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=lpXeeuNb379lp2BHbIVnbeTK7rAEbIGA/6unUUBipI8=; b=M8f4tC6GGQu+b1RfFuZqVFDUbP/DD1V2BKwXpKxtDSgjOsXKDJb0YrkAFumYgCgpA4 Wk+wThhOYJIu57X2ricQIrvxgpokBQ1rWReB1WFe+uXZlD0l1pI+myowAInoqiyKHFIo k/wn9mqjFVdk4MGBwtyIYG6qaWQlvV4UYz43w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=lpXeeuNb379lp2BHbIVnbeTK7rAEbIGA/6unUUBipI8=; b=JImJzyZTuoyIpkObA5+XnB+sdXwT5mTACAtOe4f4wnCuuERhiLm9QX3WcjGbqHW0RL bcymhcsDBz2g9W49tEl20nVRN8TxDHtQiSwKKCAIZbsKrn7F0Uuvq/8PkaxLQ2A0IBSx BFv07YVffwCv5Qcx12cGXPMLO48e6iPPnVFc1LhbnaVnbfZO/254lVf+qJ6me2GeBEv2 Y4BJqp4Yzvwbc5Ug+Gerj+W6+CJYm1Epdpcf+n8KC/d1mQrznB4bxhq6vT57OyOEAWfv nl9DAYIIswHYGEGCZciRdtrK/Y6nI9pErgG5CHy+JrbZKMPwXtDdpdC5r4OGYgRX57tO 4C1w== X-Gm-Message-State: ACgBeo2ueWvrI29O3BfXyxK9j34V6vLqtKr3GryXaIqqKU7NmAc0ETwl C37b7n/psrEiU+8kWhB/sVYKnjf8vm+OQA== X-Google-Smtp-Source: AA6agR54XMDCxgj8EIwhcy37qvGjm4tyotG4PxwPb3Dtq28I1u5lV60JToF+44Xe45cWfQPKAYQ8nA== X-Received: by 2002:a05:6870:240f:b0:10e:cc30:7c20 with SMTP id n15-20020a056870240f00b0010ecc307c20mr679045oap.235.1659236247701; Sat, 30 Jul 2022 19:57:27 -0700 (PDT) Received: from sjg1.lan (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id 185-20020a4a00c2000000b0043610215abasm2061952ooh.16.2022.07.30.19.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jul 2022 19:57:27 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Alper Nebi Yasak Subject: [PATCH 1/7] dtoc: Tidy up fdt_tests RunTestCoverage() args Date: Sat, 30 Jul 2022 20:57:05 -0600 Message-Id: <20220731025711.871999-2-sjg@chromium.org> X-Mailer: git-send-email 2.37.1.455.g008518b4e5-goog In-Reply-To: <20220731025711.871999-1-sjg@chromium.org> References: <20220731025711.871999-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.6 at phobos.denx.de X-Virus-Status: Clean Pass the options args in rather than using the global various. Use snake case and fix up comments to make pylint happy. Signed-off-by: Simon Glass --- tools/dtoc/test_fdt.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/dtoc/test_fdt.py b/tools/dtoc/test_fdt.py index 3baf4437cdd..ec257552efc 100755 --- a/tools/dtoc/test_fdt.py +++ b/tools/dtoc/test_fdt.py @@ -768,10 +768,14 @@ class TestFdtUtil(unittest.TestCase): tools.outdir= old_outdir -def RunTestCoverage(): - """Run the tests and check that we get 100% coverage""" +def run_test_coverage(build_dir): + """Run the tests and check that we get 100% coverage + + Args: + build_dir (str): Directory containing the build output + """ test_util.run_test_coverage('tools/dtoc/test_fdt.py', None, - ['tools/patman/*.py', '*test_fdt.py'], options.build_dir) + ['tools/patman/*.py', '*test_fdt.py'], build_dir) def RunTests(args): @@ -811,4 +815,4 @@ if options.test: ret_code = RunTests(args) sys.exit(ret_code) elif options.test_coverage: - RunTestCoverage() + run_test_coverage(options.build_dir) -- 2.37.1.455.g008518b4e5-goog