tests/qtest: Use qtest_system_reset() instead of open-coded versions
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Nov 2024 16:50:40 +0000 (16:50 +0000)
committerFabiano Rosas <farosas@suse.de>
Thu, 12 Dec 2024 13:25:38 +0000 (10:25 -0300)
commit9881d3d1687d1f18dc605a589d13ae5b8a9db456
treeb1d780b5bd81eec80e9f63a61cb87d4665aebb5a
parent6b76264ed0fed402df09aab8edacf1ee03d87c7f
tests/qtest: Use qtest_system_reset() instead of open-coded versions

Use the qtest_system_reset() function in various tests that were
previously open-coding the system-reset. Note that in several
cases this fixes a bug where the test did not wait for the RESET
QMP event before continuing.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/bios-tables-test.c
tests/qtest/boot-order-test.c
tests/qtest/hd-geo-test.c
tests/qtest/q35-test.c
tests/qtest/qos-test.c
tests/qtest/stm32l4x5_gpio-test.c
tests/qtest/stm32l4x5_syscfg-test.c