From 28b6e3a3d320fcf7cbe35a3cb2252833f234dcd1 Mon Sep 17 00:00:00 2001 From: chunfuwen Date: Mon, 25 Nov 2024 00:46:10 -0500 Subject: [PATCH] Fix setvirtlog failure due to not completion start of VM Add vm.wait_for_login().close() before calling on check log Signed-off-by: chunfuwen --- .../src/daemon/conf_file/libvirtd_conf/set_audit_logging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libvirt/tests/src/daemon/conf_file/libvirtd_conf/set_audit_logging.py b/libvirt/tests/src/daemon/conf_file/libvirtd_conf/set_audit_logging.py index 7ecf2db04c..0add0138d9 100644 --- a/libvirt/tests/src/daemon/conf_file/libvirtd_conf/set_audit_logging.py +++ b/libvirt/tests/src/daemon/conf_file/libvirtd_conf/set_audit_logging.py @@ -142,6 +142,7 @@ def check_concurrent_filters(): check_virt_type_from_audit_log() check_msg_in_libvirtd_log("virDomainAudit") elif test_scenario == "default_audit_log": + vm.wait_for_login().close() ausearch_audit_log() elif test_scenario == "concurrent_filters": check_concurrent_filters()