From 399b1b7b95ea95894f84c18e55545740442fa107 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Sat, 23 Nov 2024 18:11:20 +0100 Subject: [PATCH] Increase test timeout on riscv64 Builds fail otherwise because the hardware that's currently available is not quite fast enough to keep up. Signed-off-by: Andrea Bolognani (cherry picked from commit fe93b3eb93c8a71aec610a8655062ec4d9b1e162) Signed-off-by: David Abdurachmanov --- qemu.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/qemu.spec b/qemu.spec index 7cd8cb1..fbc3a48 100644 --- a/qemu.spec +++ b/qemu.spec @@ -2134,6 +2134,14 @@ rm -rf %{static_buildroot} # tests have been flakey in the past export MTESTARGS="--no-suite block" +# Most architectures can use the default timeouts, but in some cases +# the hardware that's currently available is too slow and we need to +# allow tests to run for a little bit longer +%define timeout_multiplier 1 +%ifarch riscv64 +%define timeout_multiplier 2 +%endif + %if %{with check} %if !%{tools_only} @@ -2143,7 +2151,7 @@ echo "Testing %{name}-build" # Last check: 2023-10 # Added: 2022-06 %ifnarch %{power64} -%make_build check +%make_build check TIMEOUT_MULTIPLIER=%{timeout_multiplier} %endif popd @@ -3160,6 +3168,7 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \ %changelog * Sat Nov 23 2024 David Abdurachmanov - 9.1.2-1.0.riscv64 - Fix riscv files +- Increase test timeout on riscv64 * Thu Nov 21 2024 Cole Robinson - 9.1.2-1 - Update to qemu 9.1.2 stable