]> xenbits.xensource.com Git - qemu-xen.git/commit
tests/avocado: test_arm_emcraft_sf2: handle RW requirements for asset
authorCleber Rosa <crosa@redhat.com>
Fri, 26 Jul 2024 13:44:33 +0000 (09:44 -0400)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 30 Jul 2024 22:14:22 +0000 (00:14 +0200)
commit4ec88f164067c399ef2296c353209f9e49166b1a
treed3d9344dd3c3785b7a40685d5fc8738a8dcb1f16
parent085ea2b868ab02536320f11a7bc2326d8c26dcd3
tests/avocado: test_arm_emcraft_sf2: handle RW requirements for asset

The asset used in the mentioned test gets truncated before it's used
in the test.  This means that the file gets modified, and thus the
asset's expected hash doesn't match anymore.  This causes cache misses
and re-downloads every time the test is re-run.

Let's make a copy of the asset so that the one in the cache is
preserved and the cache sees a hit on re-runs.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240726134438.14720-9-crosa@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
tests/avocado/boot_linux_console.py