aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCleber Rosa <crosa@redhat.com>2018-05-30 14:41:53 -0400
committerEduardo Habkost <ehabkost@redhat.com>2018-06-15 16:10:11 -0300
commit572a82438308216fbfc615c924b6e94e4b68dfaa (patch)
tree3ff49f302093c11e30dd8d16af0d2f04f36b0c5d /scripts
parentc3d7e8c90db208b1d876f8d6458c2dfca169137f (diff)
scripts/qemu.py: allow adding to the list of extra arguments
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qemu.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/qemu.py b/scripts/qemu.py
index 08a3e9af5a..7cd8193df8 100644
--- a/scripts/qemu.py
+++ b/scripts/qemu.py
@@ -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)