Re: [PATCH] kselftest/alsa: Increase kselftest timeout

From: Ricardo Cañuelo
Date: Mon May 15 2023 - 05:45:52 EST


Hi Shuah,

Bumping an old thread, this is still an issue for this test [1] and it
could end up affecting many others.

On mar 13-12-2022 11:37:56, Shuah Khan wrote:
> On 12/13/22 11:32, Nícolas F. R. A. Prado wrote:
> > The default timeout for kselftests is 45 seconds, but pcm-test can take
> > longer than that to run depending on the number of PCMs present on a
> > device.
> >
> > As a data point, running pcm-test on mt8192-asurada-spherion takes about
> > 1m15s.
> >
> > Set the timeout to 10 minutes, which should give enough slack to run the
> > test even on devices with many PCMs.
> >
>
> 10 minutes is way too long.

Is there a downside to that? There'll be some tests that take more time,
I don't think that's a problem with the tests or a reason to let them
timeout. IMO it's the test framework which should adapt to the needs of
different types of tests, and the solution provided by this patch is
good enough, it addresses the problem for this particular test suite.

If the solution is still unacceptable, do you have an alternative
proposal in mind that we can try to implement?

Thanks,
Ricardo

[1] https://linux.kernelci.org/test/case/id/646127cf62438996ba2e8648/