From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNkRP-0000aT-Dj for qemu-devel@nongnu.org; Tue, 29 May 2018 15:37:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNkRN-0006Ok-9m for qemu-devel@nongnu.org; Tue, 29 May 2018 15:37:55 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40752 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fNkRN-0006Od-5F for qemu-devel@nongnu.org; Tue, 29 May 2018 15:37:53 -0400 From: Cleber Rosa Date: Tue, 29 May 2018 15:37:27 -0400 Message-Id: <20180529193730.9204-3-crosa@redhat.com> In-Reply-To: <20180529193730.9204-1-crosa@redhat.com> References: <20180529193730.9204-1-crosa@redhat.com> Subject: [Qemu-devel] [PATCH v3 2/5] scripts/qemu.py: allow adding to the list of extra arguments List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Eduardo Habkost , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Stefan Hajnoczi , Fam Zheng , Amador Pahim , Cleber Rosa Tests will often need to add extra arguments to QEMU command line arguments. Signed-off-by: Cleber Rosa --- scripts/qemu.py | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.17.0