From 560261e42746004c7b8d3b91f0fdc2b94019eff4 Mon Sep 17 00:00:00 2001 From: Badriprasad Varadaraj Date: Tue, 16 Dec 2025 12:45:54 +0530 Subject: [PATCH] migration_with_external_tpm: fix label issue The auto cases under migration_with_external_tpm are failing because correct label is not getting attached to it due to image_mode condition, changing if condition to not image_mode sets the /usr/bin/swtpm_setup correct label, which fixes the failed cases. --- .../migration_with_vtpm/migration_with_external_tpm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt/tests/src/migration/migration_with_vtpm/migration_with_external_tpm.py b/libvirt/tests/src/migration/migration_with_vtpm/migration_with_external_tpm.py index 048c734882..91a8cc0baa 100644 --- a/libvirt/tests/src/migration/migration_with_vtpm/migration_with_external_tpm.py +++ b/libvirt/tests/src/migration/migration_with_vtpm/migration_with_external_tpm.py @@ -234,7 +234,7 @@ def cleanup_test(): if os.path.exists(source_socket): os.remove(source_socket) remote.run_remote_cmd("rm -f %s" % source_socket, params) - if image_mode: + if not image_mode: remote.run_remote_cmd("restorecon /usr/bin/swtpm_setup", params, ignore_status=False) remote.run_remote_cmd("restorecon /usr/bin/swtpm", params, ignore_status=False) process.run("restorecon /usr/bin/swtpm_setup", ignore_status=False, shell=True)