mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
tests/qemu-iotests: use AIOMODE with various tests
Signed-off-by: Aarushi Mehta <mehta.aaru20@gmail.com> Acked-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20200120141858.587874-16-stefanha@redhat.com Message-Id: <20200120141858.587874-16-stefanha@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
7156ca4888
commit
8dff69b941
11 changed files with 26 additions and 25 deletions
|
@ -24,7 +24,7 @@ import socket
|
|||
import stat
|
||||
import time
|
||||
import iotests
|
||||
from iotests import cachemode, imgfmt, qemu_img, qemu_nbd, qemu_nbd_early_pipe
|
||||
from iotests import cachemode, aiomode, imgfmt, qemu_img, qemu_nbd, qemu_nbd_early_pipe
|
||||
|
||||
NBD_PORT_START = 32768
|
||||
NBD_PORT_END = NBD_PORT_START + 1024
|
||||
|
@ -134,7 +134,8 @@ class BuiltinNBD(NBDBlockdevAddBase):
|
|||
self.server.add_drive_raw('if=none,id=nbd-export,' +
|
||||
'file=%s,' % test_img +
|
||||
'format=%s,' % imgfmt +
|
||||
'cache=%s' % cachemode)
|
||||
'cache=%s' % cachemode +
|
||||
'aio=%s' % aiomode)
|
||||
self.server.launch()
|
||||
|
||||
def tearDown(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue