[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 02/25] tests/avocado: reduce the default timeout to 120s
From: |
Alex Bennée |
Subject: |
Re: [PATCH v1 02/25] tests/avocado: reduce the default timeout to 120s |
Date: |
Wed, 31 Aug 2022 19:18:56 +0100 |
User-agent: |
mu4e 1.9.0; emacs 28.1.91 |
Thomas Huth <thuth@redhat.com> writes:
> On 26/08/2022 19.21, Alex Bennée wrote:
>> We should be aiming to keep our tests under 2 minutes so lets reduce
>> the default timeout to that. Tests that we know take longer should
>> explicitly set a longer timeout.
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> ---
>> tests/avocado/avocado_qemu/__init__.py | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>> diff --git a/tests/avocado/avocado_qemu/__init__.py
>> b/tests/avocado/avocado_qemu/__init__.py
>> index 9d17a287cf..0efd2bd212 100644
>> --- a/tests/avocado/avocado_qemu/__init__.py
>> +++ b/tests/avocado/avocado_qemu/__init__.py
>> @@ -229,7 +229,7 @@ def exec_command_and_wait_for_pattern(test, command,
>> class QemuBaseTest(avocado.Test):
>> # default timeout for all tests, can be overridden
>> - timeout = 900
>> + timeout = 120
>
> Did you try this on gitlab already? I guess it will fail in
> some cases, e.g.:
>
> https://gitlab.com/qemu-project/qemu/-/jobs/2928561388
>
> there are some tests that run definitely longer, e.g.:
>
> (005/192) tests/avocado/boot_linux.py:BootLinuxAarch64.test_virt_tcg_gicv2:
> PASS (342.26 s)
> (006/192) tests/avocado/boot_linux.py:BootLinuxAarch64.test_virt_tcg_gicv3:
> PASS (330.37 s)
>
> and I can't spot a "timeout = ..." in that file.
I've added some patches for that, ppc64le and s390 into v2
>
> Thomas
--
Alex Bennée
- [PATCH v1 for 7.2 00/25] testing updates and mips deprecation, Alex Bennée, 2022/08/26
- [PATCH v1 02/25] tests/avocado: reduce the default timeout to 120s, Alex Bennée, 2022/08/26
- [PATCH v1 01/25] tests/avocado: split the AST2x00Machine classes, Alex Bennée, 2022/08/26
- [PATCH v1 03/25] tests/docker: update and flatten debian-alpha-cross, Alex Bennée, 2022/08/26
- [PATCH v1 05/25] tests/docker: update and flatten debian-m68k-cross, Alex Bennée, 2022/08/26
- [PATCH v1 08/25] tests/docker: update and flatten debian-sparc64-cross, Alex Bennée, 2022/08/26
- [PATCH v1 06/25] tests/docker: update and flatten debian-mips64-cross, Alex Bennée, 2022/08/26