[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();
- [PATCH v2 2/9] tests/qtest: Introduce qtest_init_with_env, (continued)
- [PATCH v2 2/9] tests/qtest: Introduce qtest_init_with_env, Fabiano Rosas, 2023/10/06
- [PATCH v2 5/9] tests/qtest: Introduce qtest_resolve_machine_alias, Fabiano Rosas, 2023/10/06
- [PATCH v2 8/9] tests/qtest/migration: Support more than one QEMU binary, Fabiano Rosas, 2023/10/06
- [PATCH v2 6/9] tests/qtest/migration: Introduce find_common_machine_version, Fabiano Rosas, 2023/10/06
- [PATCH v2 7/9] tests/qtest/migration: Define a machine for all architectures, Fabiano Rosas, 2023/10/06
- Re: [PATCH v2 7/9] tests/qtest/migration: Define a machine for all architectures, Thomas Huth, 2023/10/11
- [PATCH v2 4/9] tests/qtest: Introduce qtest_has_machine_with_env, Fabiano Rosas, 2023/10/06