|
|
383d26 |
From 257036163501f7c59bd54ce6d050563780cd8a98 Mon Sep 17 00:00:00 2001
|
|
|
383d26 |
From: Yash Mankad <ymankad@redhat.com>
|
|
|
383d26 |
Date: Tue, 17 Jul 2018 23:38:05 +0200
|
|
|
383d26 |
Subject: [PATCH 48/89] scripts/qemu.py: allow adding to the list of extra
|
|
|
383d26 |
arguments
|
|
|
383d26 |
MIME-Version: 1.0
|
|
|
383d26 |
Content-Type: text/plain; charset=UTF-8
|
|
|
383d26 |
Content-Transfer-Encoding: 8bit
|
|
|
383d26 |
|
|
|
383d26 |
RH-Author: Yash Mankad <ymankad@redhat.com>
|
|
|
383d26 |
Message-id: <4ba44e15a56b1119045859193f7e18d11d4a5ba4.1531870629.git.ymankad@redhat.com>
|
|
|
383d26 |
Patchwork-id: 81384
|
|
|
383d26 |
O-Subject: [RHV-7.6 qemu-kvm-rhev PATCH 2/5] scripts/qemu.py: allow adding to the list of extra arguments
|
|
|
383d26 |
Bugzilla:
|
|
|
383d26 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
383d26 |
RH-Acked-by: John Snow <jsnow@redhat.com>
|
|
|
383d26 |
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
383d26 |
|
|
|
383d26 |
From: Cleber Rosa <crosa@redhat.com>
|
|
|
383d26 |
|
|
|
383d26 |
Tests will often need to add extra arguments to QEMU command
|
|
|
383d26 |
line arguments.
|
|
|
383d26 |
|
|
|
383d26 |
Signed-off-by: Cleber Rosa <crosa@redhat.com>
|
|
|
383d26 |
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
383d26 |
Message-Id: <20180530184156.15634-3-crosa@redhat.com>
|
|
|
383d26 |
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
383d26 |
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
383d26 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
383d26 |
(cherry picked from commit 572a82438308216fbfc615c924b6e94e4b68dfaa)
|
|
|
383d26 |
Signed-off-by: Yash Mankad <ymankad@redhat.com>
|
|
|
383d26 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
383d26 |
---
|
|
|
383d26 |
scripts/qemu.py | 6 ++++++
|
|
|
383d26 |
1 file changed, 6 insertions(+)
|
|
|
383d26 |
|
|
|
383d26 |
diff --git a/scripts/qemu.py b/scripts/qemu.py
|
|
|
383d26 |
index 08a3e9a..7cd8193 100644
|
|
|
383d26 |
--- a/scripts/qemu.py
|
|
|
383d26 |
+++ b/scripts/qemu.py
|
|
|
383d26 |
@@ -359,3 +359,9 @@ class QEMUMachine(object):
|
|
|
383d26 |
of the qemu process.
|
|
|
383d26 |
'''
|
|
|
383d26 |
return self._iolog
|
|
|
383d26 |
+
|
|
|
383d26 |
+ def add_args(self, *args):
|
|
|
383d26 |
+ '''
|
|
|
383d26 |
+ Adds to the list of extra arguments to be given to the QEMU binary
|
|
|
383d26 |
+ '''
|
|
|
383d26 |
+ self._args.extend(args)
|
|
|
383d26 |
--
|
|
|
383d26 |
1.8.3.1
|
|
|
383d26 |
|