qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 5/9] tests/qtest: Introduce qtest_resolve_machine_alias


From: Thomas Huth
Subject: Re: [PATCH v2 5/9] tests/qtest: Introduce qtest_resolve_machine_alias
Date: Wed, 11 Oct 2023 17:25:38 +0200
User-agent: Mozilla Thunderbird

On 06/10/2023 14.39, Fabiano Rosas wrote:
The migration tests are being enhanced to test migration between
different QEMU versions. A requirement of migration is that the
machine type between source and destination matches, including the
version.

We cannot hardcode machine types in the tests because those change
with each release. QEMU provides a machine type alias that has a fixed
name, but points to the latest machine type at each release.

Add a helper to resolve the alias into the exact machine
type. E.g. "-machine pc" resolves to "pc-i440fx-8.2"

Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
  tests/qtest/libqtest.c | 16 ++++++++++++++++
  tests/qtest/libqtest.h | 10 ++++++++++
  2 files changed, 26 insertions(+)

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]