]> git.proxmox.com Git - mirror_qemu.git/commit
tests: ensure migration status isn't reported as failed
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 26 Apr 2022 16:00:48 +0000 (17:00 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 16 May 2022 10:46:04 +0000 (11:46 +0100)
commitfd3540adb96d6f7ee7541be14f972a74c93faf3a
treed54e2c358dec08f054da27ec975e69b310dff59c
parentff32f1dd3281d77b86d195dd62c6ec66a881b6fe
tests: ensure migration status isn't reported as failed

Various methods in the migration test call 'query_migrate' to fetch the
current status and then access a particular field. Almost all of these
cases expect the migration to be in a non-failed state. In the case of
'wait_for_migration_pass' in particular, if the status is 'failed' then
it will get into an infinite loop. By validating that the status is
not 'failed' the test suite will assert rather than hang when getting
into an unexpected state.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220426160048.812266-10-berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tests/qtest/migration-helpers.c
tests/qtest/migration-helpers.h
tests/qtest/migration-test.c