[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 10/12] iotests.py: Allow concurrent qemu instance
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v4 10/12] iotests.py: Allow concurrent qemu instances |
Date: |
Wed, 28 Sep 2016 22:56:00 +0200 |
By adding an optional suffix to the files used for communication with a
VM, we can launch multiple VM instances concurrently.
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/iotests.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 5a2678f..c589deb 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -140,8 +140,10 @@ def log(msg, filters=[]):
class VM(qtest.QEMUQtestMachine):
'''A QEMU VM'''
- def __init__(self):
- super(VM, self).__init__(qemu_prog, qemu_opts, test_dir=test_dir,
+ def __init__(self, path_suffix=''):
+ name = "qemu%s-%d" % (path_suffix, os.getpid())
+ super(VM, self).__init__(qemu_prog, qemu_opts, name=name,
+ test_dir=test_dir,
socket_scm_helper=socket_scm_helper)
if debug:
self._debug = True
--
2.10.0
- [Qemu-devel] [PATCH v4 00/12] qapi: Allow blockdev-add for NBD, Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 01/12] block/nbd: Drop trailing "." in error messages, Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 02/12] block/nbd: Reject port parameter without host, Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 03/12] block/nbd: Default port in nbd_refresh_filename(), Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 04/12] block/nbd: Use qdict_put(), Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 05/12] block/nbd: Add nbd_has_filename_options_conflict(), Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 06/12] block/nbd: Accept SocketAddress, Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 07/12] block/nbd: Use SocketAddress options, Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 08/12] qapi: Allow blockdev-add for NBD, Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 09/12] iotests.py: Add qemu_nbd function, Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 10/12] iotests.py: Allow concurrent qemu instances,
Max Reitz <=
- [Qemu-devel] [PATCH v4 11/12] socket_scm_helper: Accept fd directly, Max Reitz, 2016/09/28
- [Qemu-devel] [PATCH v4 12/12] iotests: Add test for NBD's blockdev-add interface, Max Reitz, 2016/09/28