Skip to content

Commit

Permalink
scripts/qemu.py: allow adding to the list of extra arguments
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
clebergnu authored and ehabkost committed Jun 15, 2018
1 parent c3d7e8c commit 572a824
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/qemu.py
Expand Up @@ -359,3 +359,9 @@ def get_log(self):
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)

0 comments on commit 572a824

Please sign in to comment.