qemu-cr16/tests/functional
Daniel P. Berrangé 097bbfc5e0 tests/functional: treat unknown exceptions as transient faults
To maximise the robustness of the functional tests we want to treat most
asset download failures as non-fatal to the test suite. Instead it
should just skip the tests which need that particular asset. The only
time aim to make it fatal is for 404 errors which are highly likely to
reflect genuine problems to be fixed.

We catch certain exception classes and handle them as transient errors,
but unfortunately it is proving difficult to predict what exception
classes urlopen() is capable of raising, with new possibilities being
discovered.

To provide a fail-safe, treat the generic Exception class as being a
transient error too. This may well mask certain genuine bugs, but it is
preferrable to prioritize running the test suite to the greatest extent
practical.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250918125746.1165658-3-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2025-09-24 08:26:11 +02:00
..
aarch64 tests/functional: use self.log for all logging 2025-09-24 08:26:11 +02:00
acpi-bits tests/functional: Convert the acpi-bits test into a standalone test 2024-09-04 11:14:33 +02:00
alpha tests/functional: Move alpha tests into architecture specific folder 2025-08-27 09:46:55 +02:00
arm tests/functional: use self.log for all logging 2025-09-24 08:26:11 +02:00
avr tests/functional: Move avr tests into architecture specific folder 2025-08-27 09:46:55 +02:00
generic tests/functional: Use vmstate-static-checker.py to test data from v7.2 2025-09-24 08:26:11 +02:00
hppa tests/functional/hppa: Add a CD-ROM boot test for qemu-system-hppa 2025-09-24 08:26:11 +02:00
i386 tests/functional: Move i386 tests into architecture specific folder 2025-08-27 09:46:55 +02:00
loongarch64 tests/functional: Move loongarch64 tests into architecture specific folder 2025-08-27 09:46:55 +02:00
m68k tests/functional: Use vmstate-static-checker.py to test data from v7.2 2025-09-24 08:26:11 +02:00
microblaze tests/functional: Move microblaze tests into architecture specific folder 2025-08-27 09:46:55 +02:00
microblazeel tests/functional: Move microblaze tests into architecture specific folder 2025-08-27 09:46:55 +02:00
mips tests/functional: Move mips tests into target-specific folders 2025-08-27 09:46:55 +02:00
mips64 tests/functional: Move mips tests into target-specific folders 2025-08-27 09:46:55 +02:00
mips64el tests/functional: use self.log for all logging 2025-09-24 08:26:11 +02:00
mipsel tests/functional: Move mips tests into target-specific folders 2025-08-27 09:46:55 +02:00
or1k tests/functional: Move or1k tests into target-specific folders 2025-08-27 09:46:55 +02:00
ppc tests/functional: Move ppc/ppc64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
ppc64 tests/functional: Use vmstate-static-checker.py to test data from v7.2 2025-09-24 08:26:11 +02:00
qemu_test tests/functional: treat unknown exceptions as transient faults 2025-09-24 08:26:11 +02:00
riscv32 tests/functional: Move riscv32/riscv64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
riscv64 tests/functional: Move riscv32/riscv64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
rx tests/functional: Move rx test into target-specific folders 2025-08-27 09:46:55 +02:00
s390x tests/functional: Use vmstate-static-checker.py to test data from v7.2 2025-09-24 08:26:11 +02:00
sh4 tests/functional: Move sh4/sh4eb tests into target-specific folders 2025-08-27 09:46:55 +02:00
sh4eb tests/functional: Move sh4/sh4eb tests into target-specific folders 2025-08-27 09:46:55 +02:00
sparc tests/functional: Move sparc/sparc64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
sparc64 tests/functional: Move sparc/sparc64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
x86_64 tests/functional: use self.log for all logging 2025-09-24 08:26:11 +02:00
xtensa tests/functional: Move xtensa tests into target-specific folder 2025-08-27 09:46:55 +02:00
aspeed.py tests/functional: Add gb200 tests 2025-07-03 17:36:45 +02:00
meson.build tests/functional: Move the generic tests to a subfolder 2025-08-27 09:46:55 +02:00
migration.py tests/functional: Rework the migration test to have target-specific files 2025-08-27 09:46:55 +02:00
multiprocess.py tests/functional: Rework the multiprocess test to have target-specific files 2025-08-27 09:46:55 +02:00
replay_kernel.py tests/functional: use self.log for all logging 2025-09-24 08:26:11 +02:00
reverse_debugging.py tests/functional: Convert reverse_debugging tests to the functional framework 2025-04-23 07:51:25 +02:00