[elbe-devel] [PATCH 07/11] elbepack: test_xml: stop initvm after tests
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Thu Aug 8 11:38:18 CEST 2024
For the libvirt initvm it is enough to destroy it after usage.
The QEMU initvm however also needs an explicit stop.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/tests/test_xml.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/elbepack/tests/test_xml.py b/elbepack/tests/test_xml.py
index 2aaa76609c64..f5d716763930 100644
--- a/elbepack/tests/test_xml.py
+++ b/elbepack/tests/test_xml.py
@@ -31,6 +31,8 @@ def initvm(tmp_path_factory, request):
yield initvm_func
+ with contextlib.suppress(Exception):
+ initvm_func('stop')
with contextlib.suppress(Exception):
initvm_func('destroy')
--
2.46.0
More information about the elbe-devel
mailing list