qemu-cr16/tests/functional/qemu_test
Daniel P. Berrangé 2fc170bcdc tests/functional: purge scratch dir on test startup
The test suite purges the scratch dir in the tearDown method, but
if python crashes (or is non-gracefully killed) this won't get run.
Also the user can set QEMU_TEST_KEEP_SCRATCH to disable cleanup.

Purging the scratch dir on startup ensures that tests always run
from a clean state.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20250908135722.3375580-5-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2025-09-09 15:45:33 +02:00
..
__init__.py tests/functional: add skipLockedMemoryTest decorator 2025-06-11 12:17:57 +02:00
archive.py tests/functional: replace 'run_cmd' with subprocess helpers 2024-12-17 19:39:53 +01:00
asset.py tests/functional: handle URLError when fetching assets 2025-09-09 09:57:51 +02:00
cmd.py tests/functional: fix infinite loop on console EOF 2025-09-09 12:41:18 +02:00
config.py tests/functional: Introduce the dso_suffix() helper 2025-03-10 10:30:00 +00:00
decorators.py tests/functional: add skipLockedMemoryTest decorator 2025-06-11 12:17:57 +02: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: Use more fine-grained locking when looking for free ports 2025-08-27 09:46:54 +02:00
tesseract.py tests/functional: replace 'run_cmd' with subprocess helpers 2024-12-17 19:39:53 +01:00
testcase.py tests/functional: purge scratch dir on test startup 2025-09-09 15:45:33 +02:00
tuxruntest.py tests/functional: Remove unnecessary import statements 2025-04-23 07:51:25 +02:00
uncompress.py tests/functional: Remove unnecessary import statements 2025-04-23 07:51:25 +02:00
utils.py tests/functional: Add a helper function for retrieving the hostfwd port 2024-12-17 20:33:29 +01:00