summary refs log tree commit diff stats
path: root/system/memory.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2025-09-08 14:57:22 +0100
committerThomas Huth <thuth@redhat.com>2025-09-09 15:45:33 +0200
commit2fc170bcdc4d2f05534c68572b4f72a7d18c2119 (patch)
tree4928732141953e23f7b302d5d471d5397341fafa /system/memory.c
parent2ee187dcb55aee7f70b514db772090649235de70 (diff)
downloadfocaccia-qemu-2fc170bcdc4d2f05534c68572b4f72a7d18c2119.tar.gz
focaccia-qemu-2fc170bcdc4d2f05534c68572b4f72a7d18c2119.zip
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>
Diffstat (limited to 'system/memory.c')
0 files changed, 0 insertions, 0 deletions