tests/functional: automatically clean up scratch files after tests
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 21 Nov 2024 16:57:29 +0000 (16:57 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 25 Nov 2024 10:06:20 +0000 (10:06 +0000)
commitdbaaef7dbfe3a932279c2d77f056a30575cc97cb
treeb1f1843ae3c1de1baf438f88a9f1528fdbb58907
parent2abdc8cad0b97f5a98a0e4329a07a658c630ce54
tests/functional: automatically clean up scratch files after tests

The build/tests/functional subdirectories are consuming huge amounts
of disk space.

Split the location for scratch files into a 'scratch' sub-directory,
separate from log files, and delete it upon completion of each test.
The new env variable QEMU_TEST_KEEP_SCRATCH can be set to preserve
this scratch dir for debugging access if required.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20241121154218.1423005-3-berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20241121165806.476008-3-alex.bennee@linaro.org>
docs/devel/testing/functional.rst
tests/functional/qemu_test/testcase.py