[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGS_qxp2u3F4abmYgN+XwCG8CJN37NSqWSC===SWLCjZG8HYBw@mail.gmail.com>
Date: Mon, 20 Mar 2023 12:21:09 -0700
From: Daniel Latypov <dlatypov@...gle.com>
To: Rae Moar <rmoar@...gle.com>
Cc: frowand.list@...il.com, davidgow@...gle.com,
skhan@...uxfoundation.org, keescook@...omium.org,
Tim.Bird@...y.com, brendanhiggins@...gle.com, corbet@....net,
guillaume.tucker@...labora.com, kernelci@...ts.linux.dev,
kunit-dev@...glegroups.com, linux-kselftest@...r.kernel.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [KTAP V2 PATCH] ktap_v2: add recognized test name line
On Thu, Mar 16, 2023 at 3:59 PM Rae Moar <rmoar@...gle.com> wrote:
>
> Add recognition of the test name line ("# Subtest: <name>") 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 test
> 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)
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
<lots of output>
<kernel crash, no more output>
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"
Daniel
Powered by blists - more mailing lists