]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional: ensure GDB client is stopped on error
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 14 Oct 2025 14:00:47 +0000 (15:00 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 16 Oct 2025 15:44:32 +0000 (17:44 +0200)
commit03ec40942d678ef1e98439508d1cdb2c05ff3e72
tree2ea4a1444f7696a4b79d8d8752c72ae081e1ea9c
parent5c2a4b59fad21a3e71b7a8c155d374af952b585f
tests/functional: ensure GDB client is stopped on error

If the reverse_debugging_run method fails, the GDB client will not
be closed resulting in python complaining about resource leaks.
Hoisting the GDB client creation into the caller allows this to
be cleaned up easily. While doing this, also move the VM shutdown
call to match.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20251014140047.385347-3-berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/reverse_debugging.py