aboutsummaryrefslogtreecommitdiff
path: root/tests/check-qdict.c
diff options
context:
space:
mode:
authorAmador Pahim <apahim@redhat.com>2018-01-22 21:50:28 +0100
committerEduardo Habkost <ehabkost@redhat.com>2018-02-05 19:53:55 -0200
commitaf99fa9fe22ba1c6139d1fbe6a66f3b01d575cab (patch)
tree9f1379dc5d42d795d16f0bdc3c6bd726dc188f0e /tests/check-qdict.c
parent74af2e59d26712aa673832ec03ec6eac53066c03 (diff)
qemu.py: better control of created files
To launch a VM, we need to create basically two files: the monitor socket (if it's a UNIX socket) and the qemu log file. For the qemu log file, we currently just open the path, which will create the file if it does not exist or overwrite the file if it does exist. For the monitor socket, if it already exists, we are currently removing it, even if it's not created by us. This patch moves to _pre_launch() the responsibility to create a temporary directory to host the files so we can remove the whole directory on _post_shutdown(). Signed-off-by: Amador Pahim <apahim@redhat.com> Message-Id: <20180122205033.24893-2-apahim@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'tests/check-qdict.c')
0 files changed, 0 insertions, 0 deletions