Am Tue, 25 Aug 2026 23:09:18 +0400
schrieb Marc-André Lureau <[email protected]>:

> Replace human-monitor-command "info usernet" calls with the structured
> x-query-usernet QMP command in get_usernet_hostfwd_port() and the VM
> test runner boot path.
> 
> Since x-query-usernet returns a list of UsernetInfo entries, callers
> now iterate over the result and extract the port from each entry's
> "info" field. Also switch get_info_usernet_hostfwd_port() from
> split('\r\n') to splitlines(), since QMP strings use \n rather than
> the HMP monitor's \r\n line endings.
> 
> Reviewed-by: Daniel P. Berrangé <[email protected]>
> Signed-off-by: Marc-Andre Lureau <[email protected]>
> ---
>  python/qemu/utils/__init__.py       |  5 +++--
>  tests/functional/qemu_test/utils.py |  8 ++++++--
>  tests/vm/basevm.py                  | 13 ++++++++-----
>  3 files changed, 17 insertions(+), 9 deletions(-)

Reviewed-by: Thomas Huth <[email protected]>

Reply via email to