From: Max Reitz Date: Sun, 10 Feb 2019 14:57:35 +0000 (+0100) Subject: iotests: Let 045 be run concurrently X-Git-Tag: v4.0.0-rc0~78^2^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e35792b6fde67f6d6a302b39c1b4ea2c019fa439;p=thirdparty%2Fqemu.git iotests: Let 045 be run concurrently Adding a telnet monitor for no real purpose on a fixed port is not so great. Just use a null monitor instead. Signed-off-by: Max Reitz Reviewed-by: John Snow Message-id: 20190210145736.1486-10-mreitz@redhat.com Signed-off-by: Max Reitz --- diff --git a/scripts/qemu.py b/scripts/qemu.py index 32b00af5cca..f7269eefbb1 100644 --- a/scripts/qemu.py +++ b/scripts/qemu.py @@ -144,10 +144,9 @@ class QEMUMachine(object): return False # This can be used to add an unused monitor instance. - def add_monitor_telnet(self, ip, port): - args = 'tcp:%s:%d,server,nowait,telnet' % (ip, port) + def add_monitor_null(self): self._args.append('-monitor') - self._args.append(args) + self._args.append('null') def add_fd(self, fd, fdset, opaque, opts=''): """ diff --git a/tests/qemu-iotests/045 b/tests/qemu-iotests/045 index 55a5d31ca82..d5484a0ee17 100755 --- a/tests/qemu-iotests/045 +++ b/tests/qemu-iotests/045 @@ -132,7 +132,7 @@ class TestSCMFd(iotests.QMPTestCase): qemu_img('create', '-f', iotests.imgfmt, image0, '128K') # Add an unused monitor, to verify it works fine when two monitor # instances present - self.vm.add_monitor_telnet("0",4445) + self.vm.add_monitor_null() self.vm.launch() def tearDown(self):