qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 6/9] tests/qtest/migration: Introduce find_common_machine_


From: Juan Quintela
Subject: Re: [PATCH v2 6/9] tests/qtest/migration: Introduce find_common_machine_version
Date: Wed, 11 Oct 2023 16:25:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux)

Fabiano Rosas <farosas@suse.de> wrote:
> When using two different QEMU binaries for migration testing, we'll
> need to find what is the machine version that will work with both
> binaries. Add a helper for that.
>
> Signed-off-by: Fabiano Rosas <farosas@suse.de>

Reviewed-by: Juan Quintela <quintela@redhat.com>

As it should never fails.

> +    if (qtest_has_machine_with_env(var1, type2)) {
> +        return g_strdup(type2);
> +    }

But if it ever fails, printing here an error message with the contents
of mtype, var1 and var2 sounds like a good idea.

> +    g_assert_not_reached();




reply via email to

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