From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:59237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvogv-0002Dc-93 for qemu-devel@nongnu.org; Mon, 18 Feb 2019 14:35:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvogt-0003ct-7H for qemu-devel@nongnu.org; Mon, 18 Feb 2019 14:35:01 -0500 Date: Mon, 18 Feb 2019 16:34:28 -0300 From: Caio Carrara Message-ID: <20190218193427.GB4582@localhost.localdomain> References: <20190206162901.19082-1-crosa@redhat.com> <20190206162901.19082-2-crosa@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190206162901.19082-2-crosa@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/1] Introduce a Python module structure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cleber Rosa Cc: qemu-devel@nongnu.org, Kevin Wolf , Fam Zheng , Eduardo Habkost , qemu-block@nongnu.org, Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Markus Armbruster , Wainer dos Santos Moschetta , Max Reitz , Alex =?iso-8859-1?Q?Benn=E9e?= On Wed, Feb 06, 2019 at 11:29:01AM -0500, Cleber Rosa wrote: > This is a simple move of Python code that wraps common QEMU > functionality, and are used by a number of different tests > and scripts. > > By treating that code as a real Python module, we can more easily: > * reuse code > * have a proper place for the module's own unittests > * apply a more consistent style > * generate documentation > > Signed-off-by: Cleber Rosa Reviewed-by: Caio Carrara > --- > configure | 1 + > scripts/qemu.py => python/qemu/__init__.py | 11 ++++++----- > {scripts/qmp => python/qemu}/qmp.py | 0 > {scripts => python/qemu}/qtest.py | 5 +++-- > scripts/device-crash-test | 2 ++ > scripts/qmp/__init__.py | 0 > scripts/qmp/qemu-ga-client | 5 ++++- > scripts/qmp/qmp-shell | 4 +++- > scripts/render_block_graph.py | 2 ++ > tests/acceptance/avocado_qemu/__init__.py | 5 ++--- > tests/acceptance/virtio_version.py | 2 +- > tests/migration/guestperf/engine.py | 7 ++++--- > tests/qemu-iotests/235 | 2 +- > tests/qemu-iotests/238 | 2 +- > tests/qemu-iotests/iotests.py | 4 ++-- > tests/vm/basevm.py | 2 +- > 16 files changed, 33 insertions(+), 21 deletions(-) > rename scripts/qemu.py => python/qemu/__init__.py (98%) > rename {scripts/qmp => python/qemu}/qmp.py (100%) > rename {scripts => python/qemu}/qtest.py (98%) > delete mode 100644 scripts/qmp/__init__.py > {...} > Thanks, -- Caio Carrara Software Engineer, Virt Team - Red Hat ccarrara@redhat.com