]> git.proxmox.com Git - mirror_qemu.git/commitdiff
scripts/qemu.py: allow adding to the list of extra arguments
authorCleber Rosa <crosa@redhat.com>
Wed, 30 May 2018 18:41:53 +0000 (14:41 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 15 Jun 2018 19:10:11 +0000 (16:10 -0300)
Tests will often need to add extra arguments to QEMU command
line arguments.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20180530184156.15634-3-crosa@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qemu.py

index 08a3e9af5ab3da3bb19881155cb8f566c41b5bad..7cd8193df845ee74622ad7128db99923a0a0c836 100644 (file)
@@ -359,3 +359,9 @@ class QEMUMachine(object):
         of the qemu process.
         '''
         return self._iolog
+
+    def add_args(self, *args):
+        '''
+        Adds to the list of extra arguments to be given to the QEMU binary
+        '''
+        self._args.extend(args)