Revision 88555e3607d322e46e1f33a2acf9a7f4055bfde9 authored by Daniel P. Berrangé on 05 February 2024, 15:40:19 UTC, committed by Michael Tokarev on 12 February 2024, 16:26:03 UTC
Creating an instance of the 'TestEnv' class will create a temporary
directory. This dir is only deleted, however, in the __exit__ handler
invoked by a context manager.

In dry-run mode, we don't use the TestEnv via a context manager, so
were leaking the temporary directory. Since meson invokes 'check'
5 times on each configure run, developers /tmp was filling up with
empty temporary directories.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240205154019.1841037-1-berrange@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit c645bac4e06bf9642cc8e339d027a5d6ec54d811)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
1 parent bbfcb0f
History
File Mode Size
installer
vss-win32
channel-posix.c -rw-r--r-- 8.7 KB
channel-win32.c -rw-r--r-- 10.1 KB
channel.h -rw-r--r-- 964 bytes
commands-bsd.c -rw-r--r-- 5.3 KB
commands-common.h -rw-r--r-- 2.1 KB
commands-linux.c -rw-r--r-- 8.6 KB
commands-posix-ssh.c -rw-r--r-- 12.7 KB
commands-posix.c -rw-r--r-- 95.6 KB
commands-win32.c -rw-r--r-- 77.0 KB
commands.c -rw-r--r-- 17.6 KB
cutils.c -rw-r--r-- 670 bytes
cutils.h -rw-r--r-- 125 bytes
guest-agent-command-state.c -rw-r--r-- 1.7 KB
guest-agent-core.h -rw-r--r-- 1.6 KB
main.c -rw-r--r-- 49.1 KB
meson.build -rw-r--r-- 7.1 KB
messages-win32.mc -rw-r--r-- 118 bytes
qapi-schema.json -rw-r--r-- 44.8 KB
service-win32.c -rw-r--r-- 5.5 KB
service-win32.h -rw-r--r-- 1.0 KB
vss-win32.c -rw-r--r-- 4.5 KB
vss-win32.h -rw-r--r-- 673 bytes

back to top