From patchwork Wed Jun 6 00:46:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 925670 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="gSx88HlF"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 410qqL30scz9s02 for ; Wed, 6 Jun 2018 10:51:10 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 1D0C7C2200D; Wed, 6 Jun 2018 00:50:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 1BC47C21F9D; Wed, 6 Jun 2018 00:48:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5E817C21FCB; Wed, 6 Jun 2018 00:47:32 +0000 (UTC) Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by lists.denx.de (Postfix) with ESMTPS id 796DDC21F9F for ; Wed, 6 Jun 2018 00:47:27 +0000 (UTC) Received: by mail-io0-f181.google.com with SMTP id e15-v6so5663910iog.1 for ; Tue, 05 Jun 2018 17:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=PWcNQPQJqhPhHLGYH6abQ5A0rF2m4Vg2kVnnWMuTvp4=; b=gSx88HlFkrWO3F4akC/EBwIgxPW1JJlfR+SmGr1XUYmt09y20F8L6EBt0Y3uuC0DRw vifseY9tQYDqo8YnGSxUitaxIJTF3bT2X3zHI3uO1n8mkEwO3do2TUqwJXzPUtlT38YO Nhu5l/gYF4rLj+I8q0JxmcGNRo45zBeit+wkOgls5kzGbez0GG7GJRP7B2AR15S2RabK 551zb1yriqF0+nT6QEpxCESZWr7pAP18rUQ/Bqxu7B6SSIKtrsB8JlzKuAf6F+UTPnDk ajt8TrjXv7cB/FaFZSb94Bt4p2ZJU5AE3udXUD0eJ5k8Zowlb10JSbAEv78TGtW/43vs xDeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=PWcNQPQJqhPhHLGYH6abQ5A0rF2m4Vg2kVnnWMuTvp4=; b=nupYj10cW+M3aaRP+9Lb9rhDANucpfSvENwQG3H2viXOt+k8XY/U68HvWji2yneJ1u HiCBJsFgEFJ9Wi9JbAdwrl4IOgpkBAuzaiqexeVYNE9gF6XwoPqe5X9Pdnpci3jv/46H EObL0ipoEXN8qsdzTjEpZthpNqerkcaXPssDPlssafXNrYR2LT4wiyXngfarxXdS9bdm yZNwOfmhQ5ZsfvqkYZL+VVcCBH2KNZurAavSCos1LjMO9IQEnyyIPSXuN8MB3HPdIvHS CHIUmr5H5R/JkbqAsVE50vkgC6I33AZo2vjprRiuhCYEkCcfrOaWmbrNYqxRQBSBFPzZ ZcoA== X-Gm-Message-State: APt69E2fpsJJQO0Sy0z5Rhx0+WMF9fYAJ+21JQ7Vw471AF2vqA9uS9io eYMcrBLSPAk5ijNIpo/SmfsvXdQBl/k= X-Google-Smtp-Source: ADUXVKInnmLkMOsrCwcrIC4x8wWL+SxKiMj100xMRhPKmd8RUq54cv+/hxgApVechellSME0Tdfgtw== X-Received: by 2002:a6b:4a19:: with SMTP id w25-v6mr848627iob.25.1528246045950; Tue, 05 Jun 2018 17:47:25 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([100.67.80.24]) by smtp.gmail.com with ESMTPSA id o140-v6sm5820752ioo.22.2018.06.05.17.47.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jun 2018 17:47:24 -0700 (PDT) Received: by kiwi.bld.corp.google.com (Postfix, from userid 121222) id 93453140700; Tue, 5 Jun 2018 18:47:24 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Tue, 5 Jun 2018 18:46:41 -0600 Message-Id: <20180606004705.79641-6-sjg@chromium.org> X-Mailer: git-send-email 2.17.1.1185.g55be947832-goog In-Reply-To: <20180606004705.79641-1-sjg@chromium.org> References: <20180606004705.79641-1-sjg@chromium.org> Cc: Tom Rini Subject: [U-Boot] [PATCH 05/29] binman: Tidy up execution of tests X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Move all the test execution into the same mechanism so that we can request a particular test (from any suite) by passing it as an argument to 'binman -t'. Signed-off-by: Simon Glass --- tools/binman/binman.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/binman/binman.py b/tools/binman/binman.py index f3044ca2124..9bdf2237528 100755 --- a/tools/binman/binman.py +++ b/tools/binman/binman.py @@ -54,14 +54,12 @@ def RunTests(debug, args): # Run the entry tests first ,since these need to be the first to import the # 'entry' module. - suite = unittest.TestLoader().loadTestsFromTestCase(entry_test.TestEntry) - suite.run(result) test_name = args and args[0] or None - for module in (ftest.TestFunctional, fdt_test.TestFdt, elf_test.TestElf, - image_test.TestImage): + for module in (entry_test.TestEntry, ftest.TestFunctional, fdt_test.TestFdt, + elf_test.TestElf, image_test.TestImage): if test_name: try: - suite = unittest.TestLoader().loadTestsFromName(args[0], module) + suite = unittest.TestLoader().loadTestsFromName(test_name, module) except AttributeError: continue else: