* Re: [EXT] [PATCH] app/test: don't count skipped tests as executed
[not found] ` <CO6PR18MB448454916276F82ED0833F96D8222@CO6PR18MB4484.namprd18.prod.outlook.com>
@ 2024-03-05 15:11 ` Bruce Richardson
2024-03-06 21:34 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Richardson @ 2024-03-05 15:11 UTC (permalink / raw)
To: Akhil Goyal; +Cc: dev, stable
On Tue, Mar 05, 2024 at 02:36:27PM +0000, Akhil Goyal wrote:
> > Subject: [EXT] [PATCH] app/test: don't count skipped tests as executed
> > The logic around skipped tests is a little confusing in the unit test
> > runner.
> > * Any explicitly disabled tests are counted as skipped but not
> > executed.
> > * Any tests that return TEST_SKIPPED are counted as both skipped and
> > executed, using the same statistics counters.
> >
> > This makes the stats very strange and hard to correlate, since the
> > totals don't add up. One would expect that SKIPPED + EXECUTED +
> > UNSUPPORTED == TOTAL, and that PASSED + FAILED == EXECUTED.
> >
> > To achieve this, mark any tests returning TEST_SKIPPED, or ENOTSUP as
> > not having executed.
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
>
> Acked-by: Akhil Goyal <gakhil@marvell.com>
Cc: stable@dpdk.org
>
> Yes this makes sense.
> One would say executed should count the unsupported cases as well.
> But I think this makes sense to not include them in executed cases.
It's a good question and there are arguments either way. I'd say that no
test should return ENOTSUP now, and that such tests should return
TEST_SKIPPED. For now, I think it's best to treat them the same.
> This would give better correlation.
> Can we backport this as well?
>
If LTS maintainers want it, sure. Adding stable on CC.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [EXT] [PATCH] app/test: don't count skipped tests as executed
2024-03-05 15:11 ` [EXT] [PATCH] app/test: don't count skipped tests as executed Bruce Richardson
@ 2024-03-06 21:34 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2024-03-06 21:34 UTC (permalink / raw)
To: Bruce Richardson; +Cc: Akhil Goyal, dev, stable
05/03/2024 16:11, Bruce Richardson:
> On Tue, Mar 05, 2024 at 02:36:27PM +0000, Akhil Goyal wrote:
> > > Subject: [EXT] [PATCH] app/test: don't count skipped tests as executed
> > > The logic around skipped tests is a little confusing in the unit test
> > > runner.
> > > * Any explicitly disabled tests are counted as skipped but not
> > > executed.
> > > * Any tests that return TEST_SKIPPED are counted as both skipped and
> > > executed, using the same statistics counters.
> > >
> > > This makes the stats very strange and hard to correlate, since the
> > > totals don't add up. One would expect that SKIPPED + EXECUTED +
> > > UNSUPPORTED == TOTAL, and that PASSED + FAILED == EXECUTED.
> > >
> > > To achieve this, mark any tests returning TEST_SKIPPED, or ENOTSUP as
> > > not having executed.
> > >
> > > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> >
> > Acked-by: Akhil Goyal <gakhil@marvell.com>
> Cc: stable@dpdk.org
>
> >
> > Yes this makes sense.
> > One would say executed should count the unsupported cases as well.
> > But I think this makes sense to not include them in executed cases.
>
> It's a good question and there are arguments either way. I'd say that no
> test should return ENOTSUP now, and that such tests should return
> TEST_SKIPPED. For now, I think it's best to treat them the same.
>
> > This would give better correlation.
> > Can we backport this as well?
> >
>
> If LTS maintainers want it, sure. Adding stable on CC.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-06 21:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20231113150533.249808-1-bruce.richardson@intel.com>
[not found] ` <CO6PR18MB448454916276F82ED0833F96D8222@CO6PR18MB4484.namprd18.prod.outlook.com>
2024-03-05 15:11 ` [EXT] [PATCH] app/test: don't count skipped tests as executed Bruce Richardson
2024-03-06 21:34 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).