Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp16173pxh; Thu, 7 Apr 2022 21:23:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKA6CqcSE/IFe17tCT14g4uhsXpPOmiEVV0ytEkR6vPDjQVde1Fu11bLC9dqfM0Cec4dLO X-Received: by 2002:a17:902:a9c4:b0:151:a83a:5402 with SMTP id b4-20020a170902a9c400b00151a83a5402mr17446617plr.21.1649391809450; Thu, 07 Apr 2022 21:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649391809; cv=none; d=google.com; s=arc-20160816; b=oBIrjJerneeff8By15VMT0B/4UFh7f6EXnYFa33lVWGqZ6AToIL8oZ18Nk/euHvciE om3i84PmCNDoQFfeerpDcLPP1RbKeutqvHwmz41V7KDDtxhEXYIYCAvdBZUkh+gryaCi KuE788Y7rb+VXikweO5f7PH7DEn1PSmf04oS0ofXgmzzSihpSpSCOL5jmcbQKbfcRpWO 0Hq1cBi0KuwFZlbZa3ABKUiSmErOf0ZaxqUQbxMvEyzvh36XI9uY8z/ca8bR9FY+Gvtk PfbsfkJ02CEeXExdF8s+umOiFdjaPkj9JKfa31snqlPuJqXuqv1Ow4dAetOOPQ6/uww9 EX0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=FMxGJmiB5e6OzoXdsa0gQOrUzVf6+RM/u+nhhwmi1kk=; b=TFTv798N7SBSTrFmWfgMOJnCWbRfhQvdKs3o2ZH5zamaAt4tTOQ2A+l19ei7sArcg7 RzCaYb7LUV0MxAq36uN5clGWDXXwPQV9m0lolyUixwjRm3P7LXjQz5H6HP2uxriKLBh+ Wb6strzqZdndxpZ9iCmST4k5U3CFxOHnihGpy/5iJ58NTIFYlxi8p0W3bsdEdDyeueMi sFIidZizJZsM3dH4qzmegcUhBA4Jap+Z6v+y3Hh9GP2i2JPi5ODD2C1XBcl4UMtO4Tc+ TgXLPaD7ic/95CDk1bXvo8FrBfnsbIbPNrkdJMmdW3H98ul4jyenMtBgiQZmXy7jxnCd RagA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=hm19arxp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z10-20020a170902834a00b00153b2d1663csi1378691pln.580.2022.04.07.21.23.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 21:23:29 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=hm19arxp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BB437B7165; Thu, 7 Apr 2022 20:49:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233981AbiDHDvB (ORCPT + 99 others); Thu, 7 Apr 2022 23:51:01 -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-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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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@google.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/kunit_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 = [('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) def total(self) -> int: -- 2.35.1.1178.g4f1659d476-goog