aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/q35-test.c
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2023-01-12 15:02:45 +0100
committerMichael S. Tsirkin <mst@redhat.com>2023-01-28 06:21:29 -0500
commit6dfcb0e797b7607d4f4ee98a7a93d01c5cb10bbc (patch)
treec94a042dcf99df1183d1c13ca9871b95678fb90e /tests/qtest/q35-test.c
parentdebbda1c67eac6c4b44d07fe4301ff9b57c82afa (diff)
downloadqemu-6dfcb0e797b7607d4f4ee98a7a93d01c5cb10bbc.zip
qemu-6dfcb0e797b7607d4f4ee98a7a93d01c5cb10bbc.tar.gz
qemu-6dfcb0e797b7607d4f4ee98a7a93d01c5cb10bbc.tar.bz2
tests: boot_sector_test: avoid crashing if status is not available yet
If test case was started in paused mode (-S CLI option) and then allowed to continue via QMP, boot_sector_test could assert on transient state with following error: assertion failed (qdict_get_try_str(qret, "status") == "running"): (NULL == "running") Instead of crashing test if 'status' is not available yet, skip check and repeat iteration again after TEST_DELAY has elapsed. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20230112140312.3096331-14-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/qtest/q35-test.c')
0 files changed, 0 insertions, 0 deletions