qemu/tests/functional/qemu_test
Daniel P. Berrangé 786bc22552 tests/functional: make cached asset files read-only
This ensures that if a functional test runs QEMU with a writable
disk pointing to a cached asset, an error will be reported, rather
than silently modifying the cache file.

As an example, tweaking test_sbsaref.py to set snapshot=off,
results in a clear error:

  Command: ./build/qemu-system-aarch64 ...snip... -drive file=/var/home/berrange/.cache/qemu/download/44cdbae275ef1bb6dab1d5fbb59473d4f741e1c8ea8a80fd9e906b531d6ad461,format=raw,snapshot=off -cpu max,pauth=off
  Output: qemu-system-aarch64: Could not open '/var/home/berrange/.cache/qemu/download/44cdbae275ef1bb6dab1d5fbb59473d4f741e1c8ea8a80fd9e906b531d6ad461': Permission denied

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20241025092659.2312118-3-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2024-11-04 14:16:11 +01:00
..
__init__.py tests/functional: Add the LinuxKernelTest for testing the Linux boot process 2024-09-11 09:49:11 +02:00
asset.py tests/functional: make cached asset files read-only 2024-11-04 14:16:11 +01:00
cmd.py tests/functional: Fix bad usage of has_cmd 2024-09-11 09:49:12 +02:00
config.py tests/functional: Add base classes for the upcoming pytest-based tests 2024-09-04 10:52:29 +02:00
linuxkernel.py tests/functional/qemu_test: Add a function for launching kernels more easily 2024-09-24 13:38:29 +02:00
tesseract.py tests/functional: Fix bad usage of has_cmd 2024-09-11 09:49:12 +02:00
testcase.py tests/functional: Add QemuUserTest class 2024-09-04 12:28:00 +02:00
tuxruntest.py tests/functional: make tuxrun disk images writable 2024-11-04 14:16:11 +01:00
utils.py tests/functional: Convert ARM bFLT linux-user avocado test 2024-09-04 12:28:00 +02:00