tests/acceptance: introduce arch parameter and attribute
commit2c44d68f2b004e41136996fef0e4122e6507ba90
authorCleber Rosa <crosa@redhat.com>
Tue, 12 Mar 2019 17:18:08 +0000 (12 13:18 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 3 May 2019 00:33:26 +0000 (2 21:33 -0300)
treee3e3f470a021d445269d57ae25f4bee8f0a3c737
parent805fac5272825be4a241d028a4ac02d47355b891
tests/acceptance: introduce arch parameter and attribute

It's useful to define the architecture that should be used in
situations such as:
 * the intended target of the QEMU binary to be used on tests
 * the architecture of code to be run within the QEMU binary, such
   as a kernel image or a full blown guest OS image

This commit introduces both a test parameter and a test instance
attribute, that will contain such a value.

Now, when the "arch" test parameter is given, it will influence the
selection of the default QEMU binary, if one is not given explicitly
by means of the "qemu_img" parameter.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20190312171824.5134-5-crosa@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
docs/devel/testing.rst
tests/acceptance/avocado_qemu/__init__.py