|
|
9bac43 |
From cc83ddb2ea7c12b48d78160bd60b703097d849ea Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9bac43 |
Date: Fri, 22 Dec 2017 11:08:58 +0100
|
|
|
9bac43 |
Subject: [PATCH 40/42] iotests: add VM.add_object()
|
|
|
9bac43 |
|
|
|
9bac43 |
RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9bac43 |
Message-id: <20171222110900.24813-19-stefanha@redhat.com>
|
|
|
9bac43 |
Patchwork-id: 78500
|
|
|
9bac43 |
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH 18/20] iotests: add VM.add_object()
|
|
|
9bac43 |
Bugzilla: 1519721
|
|
|
9bac43 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
The VM.add_object() method can be used to add IOThreads or memory
|
|
|
9bac43 |
backend objects.
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9bac43 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
9bac43 |
Message-id: 20171207201320.19284-5-stefanha@redhat.com
|
|
|
9bac43 |
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9bac43 |
(cherry picked from commit ccc15f7dafff63cbcc3f6a7c51e380025d67f7f4)
|
|
|
9bac43 |
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9bac43 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
---
|
|
|
9bac43 |
tests/qemu-iotests/iotests.py | 5 +++++
|
|
|
9bac43 |
1 file changed, 5 insertions(+)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
|
|
|
9bac43 |
index 07fa162..4a3d3fb 100644
|
|
|
9bac43 |
--- a/tests/qemu-iotests/iotests.py
|
|
|
9bac43 |
+++ b/tests/qemu-iotests/iotests.py
|
|
|
9bac43 |
@@ -198,6 +198,11 @@ class VM(qtest.QEMUQtestMachine):
|
|
|
9bac43 |
self._debug = True
|
|
|
9bac43 |
self._num_drives = 0
|
|
|
9bac43 |
|
|
|
9bac43 |
+ def add_object(self, opts):
|
|
|
9bac43 |
+ self._args.append('-object')
|
|
|
9bac43 |
+ self._args.append(opts)
|
|
|
9bac43 |
+ return self
|
|
|
9bac43 |
+
|
|
|
9bac43 |
def add_device(self, opts):
|
|
|
9bac43 |
self._args.append('-device')
|
|
|
9bac43 |
self._args.append(opts)
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|