[PATCH 0/2] tests/avocado: Pass parameters via Makefile

Fabiano Rosas posted 2 patches 1 year, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230120221500.4194-1-farosas@suse.de
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, Thomas Huth <thuth@redhat.com>, Cleber Rosa <crosa@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Wainer dos Santos Moschetta <wainersm@redhat.com>, Beraldo Leal <bleal@redhat.com>
tests/Makefile.include                 |  6 ++++-
tests/avocado/avocado_qemu/__init__.py | 32 +++++++++++++++-----------
2 files changed, 24 insertions(+), 14 deletions(-)
[PATCH 0/2] tests/avocado: Pass parameters via Makefile
Posted by Fabiano Rosas 1 year, 3 months ago
This is intended to replace the last two patches of Daniel's series:
https://lore.kernel.org/r/20230118124348.364771-1-dbarboza@ventanamicro.com

Currently, the initialization code in setUp() infers properties of the
tests & host/target machine by looking at the avocado tags present in
the test. If there are no tags some best-effort fallbacks are chosen.

This means that for generic tests they end up always choosing the QEMU
target that matches the host architecture, which is not always
desirable. If we allow command line parameters to override the
fallback, we can alter this behavior.

patch 1 - change precedence to tags > params to avoid changing tests
          that do have tags;

patch 2 - wires up the new AVOCADO_PARAMS variable to the '-p' avocado
          command line option;

Fabiano Rosas (2):
  tests/avocado: Invert parameter vs. tag precedence during setUp
  tests/avocado: Allow passing command line parameters via Makefile

 tests/Makefile.include                 |  6 ++++-
 tests/avocado/avocado_qemu/__init__.py | 32 +++++++++++++++-----------
 2 files changed, 24 insertions(+), 14 deletions(-)

-- 
2.35.3