From mboxrd@z Thu Jan 1 00:00:00 1970 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 8599DC433F5 for ; Sat, 2 Apr 2022 17:06:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C813F83986; Sat, 2 Apr 2022 19:06:34 +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="DNLMqysN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2EC0C83938; Sat, 2 Apr 2022 19:06:31 +0200 (CEST) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (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 AD42483965 for ; Sat, 2 Apr 2022 19:06:25 +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=alpernebiyasak@gmail.com Received: by mail-ej1-x62a.google.com with SMTP id c10so11798158ejs.13 for ; Sat, 02 Apr 2022 10:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Br5JKy30jpWBkEsEmtQPVd5WzmYe+VF+qPGFBMG+Dd4=; b=DNLMqysNLPSU3BGQDXCQouniQ1hsOVHHLjUluCW9UOzWf8A70jmcZC2GOdIMlkhbfh 4xW0FFZwQtoJ8qRQBuO6zMN/jhVSQc9vQFKyUU719rfe0Fl7Q6F2wosR/7Fyp8LkWHUf uuWbbFGfpGIMmmMQNezOammAsT0uZyjQ2v9IRcN4zJ6JTHYbI6SPSiEpdj0I0Q58vdRP Yuh0seAuWb4IoREz22rrihkVB4KIJNlatlKL/8XLrDE2J2c/EHQnHybwXsN4d4Gw7cWo Sh4kadY0Xh2Htb+yriuFT28Ero98L4Iate266deA351vIZbEx16fQEI0Dt+rdvRxiMrI rL0A== 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=Br5JKy30jpWBkEsEmtQPVd5WzmYe+VF+qPGFBMG+Dd4=; b=ucvelvGzXixueB2x2MCosJ2PUIoHBCfCJ6pryhYEKb8w7j6nfBWZbQQ39D28pqf/zl YGKdKspa7oxcPVQsQxtskz42fuY0E9l072BtHE22KzKIgWvWaB0IRKAE3E/iaE4fWZB7 /B8K9Cp7P0w5r1eRXsGTl52k4shvsFbbd1P7AirC0a/PF+2v0Je0a/x5u/mNUifHCdd7 HnBoR8c9rADeOD+4cY470NNOyYN+g5JZ0TJNlu943RUusXXXsJsOnbJi2AC24/QubWaM g7ttQXhLp5NeXiexK9EsATrEKj3K8IqP413okjwQdnTVbSPoQDMjTvAdJtE9Ix7dhjx/ psUw== X-Gm-Message-State: AOAM533n82SbiGpm/v4ibAkgPk4G3FJur6K04J8VUAsElOfJ7hJcdwsu PTrlxrVo/qLRpDv8s6wdUmN+5Z14+BQ= X-Google-Smtp-Source: ABdhPJygAJysvEKUMwjmnJpA1qUiww+zjNiW8W09xvAi6IG7Gk1ou1xENVTPnCvK4QJg7OtZFfV+KQ== X-Received: by 2002:a17:906:c102:b0:6e0:73a0:c63e with SMTP id do2-20020a170906c10200b006e073a0c63emr4413830ejc.627.1648919185173; Sat, 02 Apr 2022 10:06:25 -0700 (PDT) Received: from localhost.localdomain ([178.233.178.185]) by smtp.gmail.com with ESMTPSA id qb24-20020a1709077e9800b006e029bd4c24sm2268198ejc.193.2022.04.02.10.06.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Apr 2022 10:06:24 -0700 (PDT) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Walter Lozano , Simon Glass , Alper Nebi Yasak Subject: [PATCH 1/5] patman: test_util: Fix printing results for failed tests Date: Sat, 2 Apr 2022 20:06:04 +0300 Message-Id: <20220402170609.17790-2-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220402170609.17790-1-alpernebiyasak@gmail.com> References: <20220402170609.17790-1-alpernebiyasak@gmail.com> 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.5 at phobos.denx.de X-Virus-Status: Clean When printing a python tool's test results, the entire list of failed tests and their tracebacks are reprinted for every failed test. This makes the test output quite unreadable. Fix the loop to print failures and tracebacks one at a time. Signed-off-by: Alper Nebi Yasak --- tools/patman/test_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/test_util.py b/tools/patman/test_util.py index c60eb3628e23..8b2220dbbafc 100644 --- a/tools/patman/test_util.py +++ b/tools/patman/test_util.py @@ -127,7 +127,7 @@ def report_result(toolname:str, test_name: str, result: unittest.TestResult): for test, err in result.errors: print(test.id(), err) for test, err in result.failures: - print(err, result.failures) + print(test.id(), err) if result.skipped: print('%d %s test%s SKIPPED:' % (len(result.skipped), toolname, 's' if len(result.skipped) > 1 else '')) -- 2.35.1