mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qemu-iotests: start vms in qtest mode
This way, they will not execute any VM code at all. However, right now the cancellation test is "relying" on being slowed down by TCG executing BIOS code. So, change the timeouts. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
ab68cdfaa9
commit
0fd05e8dd1
2 changed files with 4 additions and 2 deletions
|
@ -147,7 +147,7 @@ class TestStreamStop(ImageStreamingTestCase):
|
|||
result = self.vm.qmp('block-stream', device='drive0')
|
||||
self.assert_qmp(result, 'return', {})
|
||||
|
||||
time.sleep(1)
|
||||
time.sleep(0.1)
|
||||
events = self.vm.get_qmp_events(wait=False)
|
||||
self.assertEqual(events, [], 'unexpected QMP event: %s' % events)
|
||||
|
||||
|
|
|
@ -54,7 +54,9 @@ class VM(object):
|
|||
self._qemu_log_path = os.path.join(test_dir, 'qemu-log.%d' % os.getpid())
|
||||
self._args = qemu_args + ['-chardev',
|
||||
'socket,id=mon,path=' + self._monitor_path,
|
||||
'-mon', 'chardev=mon,mode=control', '-nographic']
|
||||
'-mon', 'chardev=mon,mode=control',
|
||||
'-qtest', 'stdio', '-machine', 'accel=qtest',
|
||||
'-display', 'none', '-vga', 'none']
|
||||
self._num_drives = 0
|
||||
|
||||
def add_drive(self, path, opts=''):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue