qemu/tests/functional/qemu_test
Nicholas Piggin 7524e1b336 tests/functional/asset: Verify downloaded size
If the server provides a Content-Length header, use that to verify the
size of the downloaded file. This catches cases where the connection
terminates early, and gives the opportunity to retry. Without this, the
checksum will likely mismatch and fail without retry.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-ID: <20250312130002.945508-3-npiggin@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2025-03-12 18:20:50 +01:00
..
__init__.py tests/functional: Introduce the dso_suffix() helper 2025-03-10 10:30:00 +00:00
archive.py tests/functional: replace 'run_cmd' with subprocess helpers 2024-12-17 19:39:53 +01:00
asset.py tests/functional/asset: Verify downloaded size 2025-03-12 18:20:50 +01:00
cmd.py tests/functional: remove now unused 'run_cmd' helper 2024-12-17 19:39:53 +01:00
config.py tests/functional: Introduce the dso_suffix() helper 2025-03-10 10:30:00 +00:00
decorators.py tests/functional: Add a decorator for skipping long running tests 2025-01-30 10:50:56 +01:00
linuxkernel.py tests/functional: Move the code for testing HTTP downloads to a common function 2025-03-07 07:50:19 +01:00
ports.py tests/functional: Extract the find_free_ports() function into a helper file 2025-01-02 08:58:08 +01:00
tesseract.py tests/functional: replace 'run_cmd' with subprocess helpers 2024-12-17 19:39:53 +01:00
testcase.py tests/functional: Allow running TCG plugins tests on non-Linux/BSD hosts 2025-03-10 10:30:00 +00:00
tuxruntest.py tests/functional: drop unused 'get_tag' method 2025-03-07 07:50:19 +01:00
uncompress.py tests/functional: stop output from zstd command when uncompressing 2025-03-07 07:50:19 +01:00
utils.py tests/functional: Add a helper function for retrieving the hostfwd port 2024-12-17 20:33:29 +01:00