Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp173415iob; Mon, 2 May 2022 16:15:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGlAg+Y08hDXSzZtY9Kgw2QBmFwk49saL7WYV80W/+W7m9RO6EuWWRQy3j4vMTIZk47s5u X-Received: by 2002:a17:90a:cd01:b0:1db:d42b:f3df with SMTP id d1-20020a17090acd0100b001dbd42bf3dfmr1594022pju.17.1651533359711; Mon, 02 May 2022 16:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651533359; cv=none; d=google.com; s=arc-20160816; b=PwdhCnGBPxaSJlnsTsVHuRRBFEZP0fw7GFv0oIZdB1Q8u7qpRZlLOIakEKJOTl6lM7 ORksv/SsiI2OtSnSdPYNJW3tS95l7JduvzA8d4IUSjJftbyE28Dhyjfi0zPxyJ6DwC1U SUQVJ+IMVYgNTUzrdeQcJ8+baohBtwgBiJevxHt4aDiHSVVznunFzzITCJtPg8DrwQGK lLM2uPgmaUkn01uMlFTa1FF++Exb/gHhaLr3vjBIZ8h512kKYkWgfiggpMGv7xGJIm71 H4Jftr9z4dyDteU9hwsNss9cf89N01zj8NVV1eDJfhMg59sfaW1EsMhNpJVOp5VtZi5l yYiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mzDHkAqitatyTcPFJa1mY5lzI4udlQpvmGQagzLDym8=; b=Xcqg3dprcssDz3xSd29ZqT5TiVf/Wcd3PqPhZ560kShLFTD2QbxcRJymfYUUUd366g 2uXGVpISo2bG3vaJv3HcFt3YVBU6nPatmEVhVvBSRdezW52fecPmbbhaAxeQl28azDz3 xCt5i1arlMJunUKRqExkBWK8j1FKE6+kX0k0eAbejxxHXSgNB3nw8KVIYTD5HjiOT91w wkiytSa1Ce5ekebuZXK68i/TcRnA4QibR55IqZkVp49XjBv83j/T9TYqDnKVybNniS0d LSrPVUp1xbm4UC60NcKMJtp8VDgDLj6uHheheR60qeIyXrSZJTBYXOKV/noGnJVvb5ap mkBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=PTUaOeLL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b5-20020a63e705000000b003c2649c71f6si1491435pgi.794.2022.05.02.16.15.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:15:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=PTUaOeLL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 A16A52FFD0; Mon, 2 May 2022 16:15:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382273AbiD3He3 (ORCPT + 99 others); Sat, 30 Apr 2022 03:34:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382259AbiD3He1 (ORCPT ); Sat, 30 Apr 2022 03:34:27 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA8FB18BD for ; Sat, 30 Apr 2022 00:31:04 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id dk23so19174793ejb.8 for ; Sat, 30 Apr 2022 00:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mzDHkAqitatyTcPFJa1mY5lzI4udlQpvmGQagzLDym8=; b=PTUaOeLLVeSdVKlPHwLajhFQ+RGXmvKDhBLR0FRjVljxZeHtCBrwZAxMLPJ7hO9czf +pE5VMAFJvm7Dz5c/QiAHhG12O2ywytGcdD1ge45uWIq5F5DtgMWGkrN25Y0R6uhpP1Q RcppfFCqGzmGF82Rm9UIRt78+yB0exo53B45YnnmPop/gNyQg6jtmJOpJvQUHIYFHGwO KmCpmEK4GOzzKlknXQZzG9PCjKAqsCyJxA628WIpEeo0/vc6x5FIb8T1iNIRHCdIWCOo 1cBv8hI0ISBk3f8ez1PCehaKcw7Ji2rWvWH5pgrxuSd1bMFrAFwnvYeLvYFGnkLmHq98 Wn5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mzDHkAqitatyTcPFJa1mY5lzI4udlQpvmGQagzLDym8=; b=GdGL2Re6xUI0TWg0QbfNtpqjNQaIy7BNYhCdHgimzxfTUMNGhEejkaKVJd7qEariK0 8zqfX/fmuAgnUmYhrflJ+ftoRMdPB213oZKY82RYNk7IcIhekCdLKeSDT1VrPXsnkaRB i6l6wCpHwZOY5tIpo4WxGUUp/FxHc3c/yOfaabiAM/lB84Cm4tpXLkbaWNa3e78p/fJj yaWhVrgmfEpvDbEGpIFxtUui8RhzGv6Jzw4MQJF/jXNI4DY67jZok4/uW7HaHgrZOjCL FPtP/k5vItrjn/nG1hrrM1A2kp9hdYmNnGYTsACnpDt9QeRmhmvmsCVbkPiBTT/dEcb8 PviQ== X-Gm-Message-State: AOAM5318074fB1ApdTmVyneq2Wt3qfw7hDBqV+yyA4/Q4xVkg/QPXmKr Kl0DI2GOHAlH9KFU+w4jE6VqOeUIkJL45QDz6EAjDg== X-Received: by 2002:a17:907:3f8e:b0:6f3:d07c:b25d with SMTP id hr14-20020a1709073f8e00b006f3d07cb25dmr2836083ejc.59.1651303863134; Sat, 30 Apr 2022 00:31:03 -0700 (PDT) MIME-Version: 1.0 References: <20220429181259.622060-1-dlatypov@google.com> In-Reply-To: <20220429181259.622060-1-dlatypov@google.com> From: Brendan Higgins Date: Sat, 30 Apr 2022 03:30:51 -0400 Message-ID: Subject: Re: [PATCH v2 1/4] kunit: rename print_subtest_{start,end} for clarity (s/subtest/suite) To: Daniel Latypov Cc: davidgow@google.com, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.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 On Fri, Apr 29, 2022 at 2:13 PM Daniel Latypov wrote: > > These names sound more general than they are. > > The _end() function increments a `static int kunit_suite_counter`, so it > can only safely be called on suites, aka top-level subtests. > It would need to have a separate counter for each level of subtest to be > generic enough. > > So rename it to make it clear it's only appropriate for suites. > > Signed-off-by: Daniel Latypov > Reviewed-by: David Gow Reviewed-by: Brendan Higgins