diff mbox series

kselftest/alsa: Increase kselftest timeout

Message ID 20221213183242.1908249-1-nfraprado@collabora.com
State New
Headers show
Series kselftest/alsa: Increase kselftest timeout | expand

Commit Message

Nícolas F. R. A. Prado Dec. 13, 2022, 6:32 p.m. UTC
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.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

---

 tools/testing/selftests/alsa/settings | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 tools/testing/selftests/alsa/settings

Comments

Ricardo Cañuelo June 16, 2023, 7:10 a.m. UTC | #1
Hi Shuah,

Gentle ping for this

On lun, may 15 2023 at 11:43:10, Ricardo Cañuelo <ricardo.canuelo@collabora.com> wrote:
> 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?

There are some tests failing because of this and we're trying to address
these problems to clean up the regression results.

Thanks,
Ricardo
diff mbox series

Patch

diff --git a/tools/testing/selftests/alsa/settings b/tools/testing/selftests/alsa/settings
new file mode 100644
index 000000000000..a62d2fa1275c
--- /dev/null
+++ b/tools/testing/selftests/alsa/settings
@@ -0,0 +1 @@ 
+timeout=600