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 <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20190210145736.1486-10-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
Max Reitz 2019-02-10 15:57:35 +01:00
parent ac3589dc46
commit e35792b6fd
2 changed files with 3 additions and 4 deletions

View file

@ -144,10 +144,9 @@ def __exit__(self, exc_type, exc_val, exc_tb):
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=''):
"""

View file

@ -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):