Skip to content

Commit

Permalink
virsh_edit: add logs
Browse files Browse the repository at this point in the history
Sometimes the test failed with right command, no additional info.
Add some additional logs to help debugging the next time it happens.

Signed-off-by: Sebastian Mitterle <[email protected]>
  • Loading branch information
smitterl committed Mar 6, 2024
1 parent 4c08c98 commit 13aa591
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libvirt/tests/src/virsh_cmd/domain/virsh_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ def edit_vcpu(source):
dic_mode["recover"]])
else:
status = libvirt.exec_virsh_edit(vm_name, [dic_mode["recover"]])
logging.info(status)
vmxml.sync()
if status and new_vcpus != expected_vcpu:
logging.debug("new_vcpus, expected_vcpu: %s, %s", new_vcpus, expected_vcpu)
return False
return status

Expand Down

0 comments on commit 13aa591

Please sign in to comment.