]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional/asset: Fail assert fetch when retries are exceeded
authorNicholas Piggin <npiggin@gmail.com>
Wed, 12 Mar 2025 13:00:00 +0000 (23:00 +1000)
committerThomas Huth <thuth@redhat.com>
Wed, 12 Mar 2025 17:20:50 +0000 (18:20 +0100)
commita5e8299d1a119b9d757ae28a57612f633894d2f6
treee60a7024df243f1b58ba083a2f2573f1a5cede6f
parent15ef93dd48c2635d0e9f9e9a4f6dd92a40e23bff
tests/functional/asset: Fail assert fetch when retries are exceeded

Currently the fetch code does not fail gracefully when retry limit is
exceeded, it just falls through the loop with no file, which ends up
hitting other errors.

Add a check for non-existing file, which indicates the retry limit was
exceeded.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-ID: <20250312130002.945508-2-npiggin@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/qemu_test/asset.py