yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-scripts-qemu.py-allow-adding-to-the-list-of-extra-ar.patch

ae23c9
From 1b7816394c8475dce6033b6f6cd4b57785898345 Mon Sep 17 00:00:00 2001
ae23c9
From: Yash Mankad <ymankad@redhat.com>
ae23c9
Date: Wed, 12 Dec 2018 00:14:36 +0000
ae23c9
Subject: [PATCH 08/13] scripts/qemu.py: allow adding to the list of extra
ae23c9
 arguments
ae23c9
MIME-Version: 1.0
ae23c9
Content-Type: text/plain; charset=UTF-8
ae23c9
Content-Transfer-Encoding: 8bit
ae23c9
ae23c9
RH-Author: Yash Mankad <ymankad@redhat.com>
ae23c9
Message-id: <c4e393048264217e2994c26c5558d6f11fc937fe.1544573601.git.ymankad@redhat.com>
ae23c9
Patchwork-id: 83438
ae23c9
O-Subject: [RHEL-8.0 qemu-kvm PATCH v2 2/7] scripts/qemu.py: allow adding to the list of extra arguments
ae23c9
Bugzilla: 1655807
ae23c9
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
ae23c9
RH-Acked-by: John Snow <jsnow@redhat.com>
ae23c9
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ae23c9
ae23c9
From: Cleber Rosa <crosa@redhat.com>
ae23c9
ae23c9
Tests will often need to add extra arguments to QEMU command
ae23c9
line arguments.
ae23c9
ae23c9
Signed-off-by: Cleber Rosa <crosa@redhat.com>
ae23c9
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
ae23c9
Message-Id: <20180530184156.15634-3-crosa@redhat.com>
ae23c9
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
ae23c9
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
ae23c9
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
ae23c9
(cherry picked from commit 572a82438308216fbfc615c924b6e94e4b68dfaa)
ae23c9
Signed-off-by: Yash Mankad <ymankad@redhat.com>
ae23c9
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ae23c9
---
ae23c9
 scripts/qemu.py | 6 ++++++
ae23c9
 1 file changed, 6 insertions(+)
ae23c9
ae23c9
diff --git a/scripts/qemu.py b/scripts/qemu.py
ae23c9
index 08a3e9a..7cd8193 100644
ae23c9
--- a/scripts/qemu.py
ae23c9
+++ b/scripts/qemu.py
ae23c9
@@ -359,3 +359,9 @@ class QEMUMachine(object):
ae23c9
         of the qemu process.
ae23c9
         '''
ae23c9
         return self._iolog
ae23c9
+
ae23c9
+    def add_args(self, *args):
ae23c9
+        '''
ae23c9
+        Adds to the list of extra arguments to be given to the QEMU binary
ae23c9
+        '''
ae23c9
+        self._args.extend(args)
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9