summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorCleber Rosa2018-05-30 20:41:53 +0200
committerEduardo Habkost2018-06-15 21:10:11 +0200
commit572a82438308216fbfc615c924b6e94e4b68dfaa (patch)
tree3ff49f302093c11e30dd8d16af0d2f04f36b0c5d /scripts
parentAdd functional/acceptance tests infrastructure (diff)
downloadqemu-572a82438308216fbfc615c924b6e94e4b68dfaa.tar.gz
qemu-572a82438308216fbfc615c924b6e94e4b68dfaa.tar.xz
qemu-572a82438308216fbfc615c924b6e94e4b68dfaa.zip
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)