[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 12/14] iotests.py: Allow concurrent qemu instance
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v3 12/14] iotests.py: Allow concurrent qemu instances |
Date: |
Wed, 6 Apr 2016 20:28:48 +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 | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index b3c00dd..ef7e52f 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -157,10 +157,13 @@ def event_match(event, match=None):
class VM(object):
'''A QEMU VM'''
- def __init__(self):
- self._monitor_path = os.path.join(test_dir, 'qemu-mon.%d' %
os.getpid())
- self._qemu_log_path = os.path.join(test_dir, 'qemu-log.%d' %
os.getpid())
- self._qtest_path = os.path.join(test_dir, 'qemu-qtest.%d' %
os.getpid())
+ def __init__(self, path_suffix=''):
+ self._monitor_path = os.path.join(test_dir, 'qemu-mon%s.%d' %
+ (path_suffix, os.getpid()))
+ self._qemu_log_path = os.path.join(test_dir, 'qemu-log%s.%d' %
+ (path_suffix,
os.getpid()))
+ self._qtest_path = os.path.join(test_dir, 'qemu-qtest%s.%d' %
+ (path_suffix, os.getpid()))
self._args = qemu_args + ['-chardev',
'socket,id=mon,path=' + self._monitor_path,
'-mon', 'chardev=mon,mode=control',
--
2.8.0
- [Qemu-devel] [PATCH v3 01/14] qdict: Add qdict_change_key(), (continued)
- [Qemu-devel] [PATCH v3 01/14] qdict: Add qdict_change_key(), Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 03/14] block/nbd: Reject port parameter without host, Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 05/14] block/nbd: Use qdict_put(), Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 04/14] block/nbd: Default port in nbd_refresh_filename(), Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 06/14] block/nbd: Add nbd_has_filename_options_conflict(), Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 07/14] block/nbd: "address" in nbd_refresh_filename(), Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 09/14] block/nbd: Use SocketAddress options, Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 08/14] block/nbd: Accept SocketAddress, Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 10/14] qapi: Allow blockdev-add for NBD, Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 11/14] iotests.py: Add qemu_nbd function, Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 12/14] iotests.py: Allow concurrent qemu instances,
Max Reitz <=
- [Qemu-devel] [PATCH v3 13/14] socket_scm_helper: Accept fd directly, Max Reitz, 2016/04/06
- [Qemu-devel] [PATCH v3 14/14] iotests: Add test for NBD's blockdev-add interface, Max Reitz, 2016/04/06