From nobody Fri Jun 19 04:08:32 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03531C433EF for ; Fri, 8 Apr 2022 03:49:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233987AbiDHDvD (ORCPT ); Thu, 7 Apr 2022 23:51:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233984AbiDHDu7 (ORCPT ); Thu, 7 Apr 2022 23:50:59 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F707B717A for ; Thu, 7 Apr 2022 20:48:57 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id om8-20020a17090b3a8800b001c68e7ccd5fso6949082pjb.9 for ; Thu, 07 Apr 2022 20:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=FMxGJmiB5e6OzoXdsa0gQOrUzVf6+RM/u+nhhwmi1kk=; b=hm19arxpl/SU0iKf7/rYndp6fQcuitlvV+EWEfUK+SO7h84og7K6BK6obvHjeOO0UZ zkiR3a7LbnhQ4jOVd6TphIiV9u9GgO2vQzsLLqeWOlXd1+4BoVQ9fCbBiT5nqRytv/3y 2Fzd5hvsY2aus3IZ1n1anlEKwfCNU//7TkvCPM5wNbdOJAhj9T3mYlLLAtktIoqNTvie MqxeVYL+BYInfOwYCLL6drgeHiCz5Sw2Mg4+Po9yBAaj9Egd+/tnkyxQBkVQMxfDOpVD urZXvT5dJiDjzaDNz4UQOmq7oci7CDnPekqCfN8JP77Z+QmRnY9+pGMfSAMtTSQymygg GX5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=FMxGJmiB5e6OzoXdsa0gQOrUzVf6+RM/u+nhhwmi1kk=; b=UC3/W6OWweFrGcLbwRc9p+ve9+IOYAbAow8Qqsegjn4llJNxIOWkfttcULlk2DQLq5 u/AvKesAgBIXQA5x2BQy9+BuEvZT+6aXDcOzdnpaeBfs1NKb2afssNIuR9G9dgg0IDJJ IKY2toZzAnakicCT2I3DX2NDCJzPyDhSixqmEIaHpTw8ESKPlp8U4zHFyxBoMMo/2LR1 JP01Dj5SxzUtjOlHrtkVo0hCR53cX7yvB14cp2mzidafSL0EgWDK3itJpQUpJQg5VhnT lSUNewmqSAbe1E4ry3oxar56Sgq+4WogcXkLoGt6RwggTjjN3mvYcyrqlMOZVeUzlu4a GTpQ== X-Gm-Message-State: AOAM531Ylow9neQ7l56lnGzhVSuo2kLC3BNVkeKqOs4nsjYB2d0hxfk0 xpYL7bA0Q0eWdt2RIkLoRRD4Nm2n62APFg== X-Google-Smtp-Source: ABdhPJx40q7xJ1d2dxEvQY/q+dodN34WiwwswNFTlP4A3FL8EJTbTurik/oaDhbNqE4hAIxdP9Y2/0ie2tMIiw== X-Received: from slicestar.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:20a1]) (user=davidgow job=sendgmr) by 2002:a05:6a00:3406:b0:505:7a1c:c553 with SMTP id cn6-20020a056a00340600b005057a1cc553mr1878476pfb.2.1649389736628; Thu, 07 Apr 2022 20:48:56 -0700 (PDT) Date: Fri, 8 Apr 2022 11:48:48 +0800 In-Reply-To: <20220407223019.2066361-1-dlatypov@google.com> Message-Id: <20220408034848.2081355-1-davidgow@google.com> Mime-Version: 1.0 References: <20220407223019.2066361-1-dlatypov@google.com> X-Mailer: git-send-email 2.35.1.1178.g4f1659d476-goog Subject: [PATCH] kunit: tool: Print a total count of tests. From: David Gow To: Daniel Latypov , brendanhiggins@google.com, skhan@linuxfoundation.org Cc: David Gow , linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add a count of the total number of tests run (including skipped tests, which do run a little bit until they decide to skip themselves) to the summary line. Signed-off-by: David Gow --- This patch depends on: https://lore.kernel.org/linux-kselftest/20220407223019.2066361-1-dlatypov@g= oogle.com/ tools/testing/kunit/kunit_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/kunit/kunit_parser.py b/tools/testing/kunit/kuni= t_parser.py index 957907105429..da01998d29b1 100644 --- a/tools/testing/kunit/kunit_parser.py +++ b/tools/testing/kunit/kunit_parser.py @@ -96,7 +96,7 @@ class TestCounts: """ statuses =3D [('Passed', self.passed), ('Failed', self.failed), ('Crashed', self.crashed), ('Skipped', self.skipped), - ('Errors', self.errors)] + ('Errors', self.errors), ('Total', self.total())] return ', '.join('{}: {}'.format(s, n) for s, n in statuses if n > 0) =20 def total(self) -> int: --=20 2.35.1.1178.g4f1659d476-goog