Re: [PATCH v1 2/2] kunit: tool: parse KTAP compliant test output

From: Rae Moar
Date: Wed Nov 16 2022 - 17:04:40 EST


On Tue, Nov 15, 2022 at 5:02 PM Daniel Latypov <dlatypov@xxxxxxxxxx> wrote:
>
> On Tue, Nov 15, 2022 at 12:46 PM Rae Moar <rmoar@xxxxxxxxxx> wrote:
> > > - As Daniel mentioned, can we think of a better placeholder name for
> > > tests without Subtest lines? One thought is to just leave it as the
> > > empty string?
> >
> > I am definitely open to changing this placeholder name.
> >
> > The ideas I thought of are: "Test suite", just "Test", or just an
> > empty string. "Test" or empty string may be less confusing. What do
> > people prefer?
>
> I'd prefer the empty string.
>
> So it would show up as something like
> ===== (1 subtests) =====
> [PASSED] case1
> ====== suite1 ======
>
> Note: we'll just have to make sure to avoid a leading space (e.g.
> we're currently doing message += f' (1 subtest)' )
>
> Daniel

This was discussed off the mailing list and seems like there was
agreement that the empty string would be the best. Just wanted to
update here. Will be changing this in v2.