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>
This commit is contained in:
Cleber Rosa 2018-05-30 14:41:53 -04:00 committed by Eduardo Habkost
parent c3d7e8c90d
commit 572a824383

View 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)