diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2024-11-21 16:57:29 +0000 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2024-11-25 10:06:20 +0000 |
| commit | dbaaef7dbfe3a932279c2d77f056a30575cc97cb (patch) | |
| tree | b1f1843ae3c1de1baf438f88a9f1528fdbb58907 /docs/devel/testing/functional.rst | |
| parent | 2abdc8cad0b97f5a98a0e4329a07a658c630ce54 (diff) | |
| download | focaccia-qemu-dbaaef7dbfe3a932279c2d77f056a30575cc97cb.tar.gz focaccia-qemu-dbaaef7dbfe3a932279c2d77f056a30575cc97cb.zip | |
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>
Diffstat (limited to 'docs/devel/testing/functional.rst')
| -rw-r--r-- | docs/devel/testing/functional.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/devel/testing/functional.rst b/docs/devel/testing/functional.rst index bf6f1bb81e..6b5d0c5b98 100644 --- a/docs/devel/testing/functional.rst +++ b/docs/devel/testing/functional.rst @@ -65,6 +65,12 @@ to the QEMU binary that should be used for the test, for example:: $ export QEMU_TEST_QEMU_BINARY=$PWD/qemu-system-x86_64 $ python3 ../tests/functional/test_file.py +The test framework will automatically purge any scratch files created during +the tests. If needing to debug a failed test, it is possible to keep these +files around on disk by setting ```QEMU_TEST_KEEP_SCRATCH=1``` as an env +variable. Any preserved files will be deleted the next time the test is run +without this variable set. + Overview -------- |