[PATCH 5/6] tests/qtest: migration: Add support for negative testing of qmp_migrate

2023-06-28 Thread Fabiano Rosas
There is currently no way to write a test for errors that happened in qmp_migrate before the migration has started. Add a version of qmp_migrate that ensures an error happens and tests the error message. To make use of it a test needs to declare: MigrateCommon args = { .result = MIG_T

[PATCH 5/6] tests/qtest: migration: Add support for negative testing of qmp_migrate

2023-06-26 Thread Fabiano Rosas
There is currently no way to write a test for errors that happened in qmp_migrate before the migration has started. Add a version of qmp_migrate that ensures an error happens and tests the error message. To make use of it a test needs to declare: MigrateCommon args = { .result = MIG_T