Skip to content

Commit

Permalink
Merge pull request #5866 from yanqzhan/tpm_minor_fix
Browse files Browse the repository at this point in the history
tpm_device: fix source_socket error
  • Loading branch information
chunfuwen authored Aug 29, 2024
2 parents fbe033e + 3e59b17 commit 22e1602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvirt/tests/src/virtual_device/tpm_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def check_swtpmpidfile(vm_name, test_stage):
try:
vm.start()
except VMStartError as detail:
if secret_value == 'none' or secret_uuid == 'nonexist' or not source_socket:
if secret_value == 'none' or secret_uuid == 'nonexist' or (source_attrs_str and not source_socket):
logging.debug("Expected failure: %s", detail)
return
else:
Expand Down

0 comments on commit 22e1602

Please sign in to comment.