[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 5/7] tests/qtest/migration: Print migration incoming error
|
From: |
Fabiano Rosas |
|
Subject: |
Re: [PATCH v1 5/7] tests/qtest/migration: Print migration incoming errors |
|
Date: |
Mon, 27 Nov 2023 12:52:38 -0300 |
Peter Xu <peterx@redhat.com> writes:
> On Fri, Nov 24, 2023 at 01:14:30PM -0300, Fabiano Rosas wrote:
>> We're currently just asserting when incoming migration fails. Let's
>> print the error message from QMP as well.
>>
>> Signed-off-by: Fabiano Rosas <farosas@suse.de>
>> ---
>> tests/qtest/migration-helpers.c | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/tests/qtest/migration-helpers.c
>> b/tests/qtest/migration-helpers.c
>> index 24fb7b3525..f1106128a9 100644
>> --- a/tests/qtest/migration-helpers.c
>> +++ b/tests/qtest/migration-helpers.c
>> @@ -118,6 +118,12 @@ void migrate_incoming_qmp(QTestState *to, const char
>> *uri, const char *fmt, ...)
>>
>> rsp = qtest_qmp(to, "{ 'execute': 'migrate-incoming', 'arguments': %p}",
>> args);
>> +
>> + if (!qdict_haskey(rsp, "return")) {
>> + g_autoptr(GString) s = qobject_to_json_pretty(QOBJECT(rsp), true);
>> + g_test_message("%s", s->str);
>> + }
>
> This traps the "migrate-incoming" command only (which, afaiu, only setup
> the listening), would this capture the incoming error?
This is about the migrate-incoming only. We could replace "incoming
migration" with "qmp_migrate_incoming" in the commit message to clarify.
- [PATCH v1 1/7] migration/multifd: Remove MultiFDPages_t::packet_num, (continued)
- [PATCH v1 1/7] migration/multifd: Remove MultiFDPages_t::packet_num, Fabiano Rosas, 2023/11/24
- [PATCH v1 2/7] migration/multifd: Remove QEMUFile from where it is not needed, Fabiano Rosas, 2023/11/24
- [PATCH v1 3/7] migration/multifd: Change multifd_pages_init argument, Fabiano Rosas, 2023/11/24
- [PATCH v1 4/7] migration: Report error in incoming migration, Fabiano Rosas, 2023/11/24
- [PATCH v1 5/7] tests/qtest/migration: Print migration incoming errors, Fabiano Rosas, 2023/11/24
[PATCH v1 6/7] tests/qtest/migration: Add a wrapper to print test names, Fabiano Rosas, 2023/11/24
[PATCH v1 7/7] tests/qtest/migration: Use the new migration_test_add, Fabiano Rosas, 2023/11/24