diff options
author | Paolo Bonzini | 2020-10-27 09:44:18 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-12-15 18:51:48 +0100 |
commit | 164dafd1744c69d268b89015977e19d8a9617fdf (patch) | |
tree | 7c3f6a9c5dfb766bdd25cfa87f37201095cd674f /tests | |
parent | Merge remote-tracking branch 'remotes/ehabkost/tags/machine-next-pull-request... (diff) | |
download | qemu-164dafd1744c69d268b89015977e19d8a9617fdf.tar.gz qemu-164dafd1744c69d268b89015977e19d8a9617fdf.tar.xz qemu-164dafd1744c69d268b89015977e19d8a9617fdf.zip |
remove preconfig state
The preconfig state is only used if -incoming is not specified, which
makes the RunState state machine more tricky than it need be. However
there is already an equivalent condition which works even with -incoming,
namely qdev_hotplug. Use it instead of a separate runstate.
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qtest/qmp-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/qmp-test.c b/tests/qtest/qmp-test.c index eb1cd8abb8..11614bf63f 100644 --- a/tests/qtest/qmp-test.c +++ b/tests/qtest/qmp-test.c @@ -295,7 +295,7 @@ static void test_qmp_preconfig(void) rsp = qtest_qmp(qs, "{ 'execute': 'query-status' }"); ret = qdict_get_qdict(rsp, "return"); g_assert(ret); - g_assert_cmpstr(qdict_get_try_str(ret, "status"), ==, "preconfig"); + g_assert_cmpstr(qdict_get_try_str(ret, "status"), ==, "prelaunch"); qobject_unref(rsp); /* exit preconfig state */ |