On Fri, Oct 31, 2025 at 12:49:56PM -0400, Peter Xu wrote: > error-desc should present on dest QEMU after migration failed on dest when > exit-on-error is set to FALSE. Check the error message. > > Signed-off-by: Peter Xu <[email protected]> > --- > tests/qtest/migration/precopy-tests.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/tests/qtest/migration/precopy-tests.c > b/tests/qtest/migration/precopy-tests.c > index 57ca623de5..5f02e35324 100644 > --- a/tests/qtest/migration/precopy-tests.c > +++ b/tests/qtest/migration/precopy-tests.c > @@ -759,6 +759,14 @@ static void test_cancel_src_after_none(QTestState *from, > QTestState *to, > wait_for_migration_complete(to); > } > > +static void assert_migration_error(QTestState *vm) > +{ > + QDict *rep = migrate_query(vm); > + > + g_assert(qdict_get_str(rep, "error-desc")); > + qobject_unref(rep); > +} > + > static void test_cancel_src_pre_switchover(QTestState *from, QTestState *to, > const char *uri, const char > *phase) > { > @@ -784,6 +792,7 @@ static void test_cancel_src_pre_switchover(QTestState > *from, QTestState *to, > > wait_for_migration_status(to, "failed", > (const char * []) { "completed", NULL }); > + assert_migration_error(to);
While I was running more tests I found this assertion might still trigger but only randomly. I think it might be caused by some migration failure path not setting the error string even if it'll fail the migration. I'll unqueuing this one for now and put this into backlog as of now.. -- Peter Xu
