The 'alias-of' option has been introduced with QEMU 4.1 (see commit 7d753f61544). By using the 'version-min' Avocado tag we can restrict this test to versions >= 4.1.
This fixes when running the test with a older QEMU: tests/acceptance/x86_cpu_model_versions.py:X86CPUModelAliases.test_none_alias: ERROR: 'alias-of' (0.45 s) Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com> --- tests/acceptance/x86_cpu_model_versions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/acceptance/x86_cpu_model_versions.py b/tests/acceptance/x86_cpu_model_versions.py index 90558d9a71..e7604bab7c 100644 --- a/tests/acceptance/x86_cpu_model_versions.py +++ b/tests/acceptance/x86_cpu_model_versions.py @@ -30,6 +30,7 @@ class X86CPUModelAliases(avocado_qemu.Test): Validation of PC CPU model versions and CPU model aliases :avocado: tags=arch:x86_64 + :avocado: tags=version-min:4.1 """ def validate_aliases(self, cpus): for c in cpus.values(): -- 2.21.1