Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4984149rwl; Tue, 28 Mar 2023 14:21:23 -0700 (PDT) X-Google-Smtp-Source: AKy350Yv0T5Ka0NGvJFB3/Lp1uV+56JQe6V25IZLTwUQdunQGhxevNLjAGTh2M8FJdgBl+xWYNw5 X-Received: by 2002:a17:90a:bc85:b0:23b:2f4a:57bb with SMTP id x5-20020a17090abc8500b0023b2f4a57bbmr18536030pjr.10.1680038482895; Tue, 28 Mar 2023 14:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680038482; cv=none; d=google.com; s=arc-20160816; b=kHoSsAQNdFlGLtJh58T2GZ1PX4ts/+FkpfZTJRBJUgaeIlLFhtlfEfYLk1l8GTUHyH XV6aM6++jR2ZMuhZ7Tr0I8TDwblZnFLa1668W6wgObZOxv9I7roMKLH1zM2rwQngy4wu NBClhGUJ4WRePydPbGsFlxkcE/pJ5iCFAbsUH/KT9+lo9bB5rked3OLljTOyhG50c8XW k4sfqGqCg8AV5biqCwvUu2RgaZUKWA0Dr0iuD+E+8K+6IKQKyKV5lPMdo+kyZ1hfNHEV pZyJwsgfGBD+oMiwLgVNmCAj7nVMaGcgbAq6UETfCA4MD54Eh5oq+Z6Tz1QovQ2gps5T 70og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HjM/ZqYn/T7unhyITZnKsFzK8c16l02nzfEEL176xOU=; b=DI74RyHW/r4WtK4/M5FOQGp3E/tw6gx6fZfJ99o7kJtY7TFLTey/l4Bj2T4VPOGaUO RVKRi2sEMP8wg0E4T/Ujc3TodPgG/B5fURYLiVIno1hgURwuOKojyaWSAI0oC5SUR4Lg +7pcqPlA1wBA7olcVGcHD65o7AUUutqPbIWGOPJTjZ2pcggEiLcWuQX6FnHVi6uXWUuL KKzhIZObgDbTvtiBcNtETqp10Ym/aEN0Blgsw/G7i3lZmcNnWRzoJYSZzVXojygOnFYw 1zYaz8n7ZUKFcTkvnhNqZylxLG+7IcBQmht8RY1aOwrK0nC4JJq9fpLXNXCsn/LceNFp 3zcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ocoA87DN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a17090a66c700b002407c936aafsi26974pjl.33.2023.03.28.14.21.00; Tue, 28 Mar 2023 14:21:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ocoA87DN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbjC1VI5 (ORCPT + 99 others); Tue, 28 Mar 2023 17:08:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjC1VIz (ORCPT ); Tue, 28 Mar 2023 17:08:55 -0400 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59B341FE9 for ; Tue, 28 Mar 2023 14:08:51 -0700 (PDT) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-544f7c176easo254730407b3.9 for ; Tue, 28 Mar 2023 14:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680037730; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HjM/ZqYn/T7unhyITZnKsFzK8c16l02nzfEEL176xOU=; b=ocoA87DNTSkmHztT5vnke6BiFUYBXc6/lZxINhcigUkk0S1CcjEXgStw7e9Zp88jv+ i89diJ/hJM1JqzrRRVhBca1mfW48YWKNSscl5VxNxl/D8BuvFLHWAN4JwAYSOtJsAnvU /hLRstVR0H2yntq3lWpDGRwmwcMZGwMsqstB4dAb+RrozEc4vmQ5viXaNAHQbq7tKKtp bsDDdWbOfanraXHIIKTb/3e2+ED5o30OM1egoRKfHSontwTNP2Ocq5mm+XuTmXg9cwR+ 7CfkIF9F9SFfzSbUPIN0ev0xFztzmGXuEfR7BLx+g6u52KVj0QwddYgJTyOOUy8WqtJ7 MRlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680037730; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HjM/ZqYn/T7unhyITZnKsFzK8c16l02nzfEEL176xOU=; b=KzR9O3l+wY88R95qfjXqvctElrQUWNmIDWXIfdD5qXZtnIx+dfUcfoOYJ22mr6tqrX V/qSF9OR2598zkCvHjXvwDlnd+kcu1HpA8hyUgVLiM590Za//NPJwNqwQeJFQufxueqk NQk//gIZjbErWu/VbfCigxt1aY1csfzon6FpKx6Hi/OYUzx+PRdxKyx0YQs2iMMNvD0Y EapEXh6kjqdo1fxSGYnPId5Jv6EHiU4XF/lUWVniESws6Jd2HRTpe7qVHVKnNQq5fxWr gC6zMasQtb+1dYxEf++cJjjzuLgZSK9C42o2idmmiBXjlfCFxf9r4IrRXaqzF7wSRmkw u8EQ== X-Gm-Message-State: AAQBX9cpYra/xC5FCYpZnxr9nNB+7c7fUFVrqAyxksvrqamAEd1t5N4a F6GOvqPy1BwE08ZqvWXV9GT32Pvo2kQz5f7yfvb5iA== X-Received: by 2002:a81:a908:0:b0:545:7164:49ac with SMTP id g8-20020a81a908000000b00545716449acmr7922856ywh.5.1680037730422; Tue, 28 Mar 2023 14:08:50 -0700 (PDT) MIME-Version: 1.0 References: <20230316225915.494688-1-rmoar@google.com> In-Reply-To: From: Rae Moar Date: Tue, 28 Mar 2023 17:08:38 -0400 Message-ID: Subject: Re: [KTAP V2 PATCH] ktap_v2: add recognized test name line To: Daniel Latypov Cc: frowand.list@gmail.com, davidgow@google.com, skhan@linuxfoundation.org, keescook@chromium.org, Tim.Bird@sony.com, brendanhiggins@google.com, corbet@lwn.net, guillaume.tucker@collabora.com, kernelci@lists.linux.dev, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-15.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=unavailable 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 Mon, Mar 20, 2023 at 3:21=E2=80=AFPM 'Daniel Latypov' via KUnit Developm= ent wrote: > > On Thu, Mar 16, 2023 at 3:59=E2=80=AFPM Rae Moar wrote= : > > > > Add recognition of the test name line ("# Subtest: ") to the KTAP= v2 > > spec. > > > > The purpose of this line is to declare the name of a test before its > > results. This functionality is especially useful when trying to parse t= est > > results incrementally and when interpretting results after a crash. > > > > This line is already compliant with KTAP v1 as it is interpretted as a > > minor nit for if there's a v2, s/interprett/interpret (here and above) > Oops. Thanks for catching this. I will change this for a v2. Unsure why I repeated the typo twice. > Also, I want to elaborate on the previous paragraph a bit more, in > case the motivation isn't clear. > The problem with TAP and KTAP as-is is that the name of a test case is > only known *after* it completes. > > So the scenario being referred to is > > KTAP version 1 > 1..1 > > > > It would be nice if parsers could report "test FOO caused a crash" as > opposed to "the first test case caused a crash, good luck figuring out > which one that was" > Yes, this is exactly what I think is the largest benefit of a line to define the test name pre-results. Thanks for expanding. I will likely add in some of this explanation into the commit message for v2. Thanks, Rae > Daniel > > -- > You received this message because you are subscribed to the Google Groups= "KUnit Development" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to kunit-dev+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgi= d/kunit-dev/CAGS_qxp2u3F4abmYgN%2BXwCG8CJN37NSqWSC%3D%3D%3DSWLCjZG8HYBw%40m= ail.gmail.com.