]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional/asset: Verify downloaded size
authorNicholas Piggin <npiggin@gmail.com>
Wed, 12 Mar 2025 13:00:01 +0000 (23:00 +1000)
committerThomas Huth <thuth@redhat.com>
Wed, 12 Mar 2025 17:20:50 +0000 (18:20 +0100)
commit7524e1b33679dc1356e8bb4efdd18e83fc50f5cc
tree83ca60dae44fa1c87e25a1275764a852828b0fae
parenta5e8299d1a119b9d757ae28a57612f633894d2f6
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>
tests/functional/qemu_test/asset.py