You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/tests/functional/qemu_test
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>
1 week ago
..
__init__.py tests/functional: add skipLockedMemoryTest decorator 4 months ago
archive.py tests/functional: replace 'run_cmd' with subprocess helpers 10 months ago
asset.py tests/functional: treat unknown exceptions as transient faults 1 week ago
cmd.py tests/functional: fix infinite loop on console EOF 3 weeks ago
config.py tests/functional: Introduce the dso_suffix() helper 7 months ago
decorators.py tests/functional: add skipLockedMemoryTest decorator 4 months ago
linuxkernel.py tests/functional: Move the code for testing HTTP downloads to a common function 7 months ago
ports.py tests/functional: Use more fine-grained locking when looking for free ports 1 month ago
tesseract.py tests/functional: replace 'run_cmd' with subprocess helpers 10 months ago
testcase.py tests/functional: purge scratch dir on test startup 3 weeks ago
tuxruntest.py tests/functional: Remove unnecessary import statements 5 months ago
uncompress.py tests/functional: Remove unnecessary import statements 5 months ago
utils.py tests/functional: Add a helper function for retrieving the hostfwd port 10 months ago