mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
python/machine: remove unused sock_dir argument
By using a socketpair for all of the sockets managed by the VM class and its extensions, we don't need the sock_dir argument anymore, so remove it. We only added this argument so that we could specify a second, shorter temporary directory for cases where the temp/log dirs were "too long" as a socket name on macOS. We don't need it for this class now. In one case, avocado testing takes over responsibility for creating an appropriate sockdir. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-id: 20230928044943.849073-7-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
d396737813
commit
46d4747ab5
7 changed files with 9 additions and 31 deletions
|
@ -823,7 +823,7 @@ class VM(qtest.QEMUQtestMachine):
|
|||
super().__init__(qemu_prog, qemu_opts, wrapper=wrapper,
|
||||
name=name,
|
||||
base_temp_dir=test_dir,
|
||||
sock_dir=sock_dir, qmp_timer=timer)
|
||||
qmp_timer=timer)
|
||||
self._num_drives = 0
|
||||
|
||||
def _post_shutdown(self) -> None:
|
||||
|
|
|
@ -44,8 +44,7 @@ class TestCbwError(iotests.QMPTestCase):
|
|||
|
||||
opts = ['-nodefaults', '-display', 'none', '-machine', 'none']
|
||||
self.vm = QEMUMachine(iotests.qemu_prog, opts,
|
||||
base_temp_dir=iotests.test_dir,
|
||||
sock_dir=iotests.sock_dir)
|
||||
base_temp_dir=iotests.test_dir)
|
||||
self.vm.launch()
|
||||
|
||||
def do_cbw_error(self, on_cbw_error):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue