Skip to content

Commit

Permalink
Merge pull request #5014 from dzhengfy/fix_preferred_multi_nodes
Browse files Browse the repository at this point in the history
memory_binding_with_emulator_thread: fix error message
  • Loading branch information
chunfuwen authored Jul 10, 2023
2 parents c7c2bbc + 22e676f commit e7313e1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,17 @@ def run_default(test_obj):
"""
test_obj.test.log.debug("Step: prepare vm xml")
vmxml = prepare_vm_xml(test_obj)
test_obj.virsh_dargs.update({'ignore_status': True})
test_obj.test.log.debug("Step: define vm and check result")
ret = virsh.define(vmxml.xml, **test_obj.virsh_dargs)
virsh.define(vmxml.xml, **test_obj.virsh_dargs)
test_obj.virsh_dargs.update({'ignore_status': True})
test_obj.test.log.debug("Step: start vm")
ret = virsh.start(test_obj.vm.name, **test_obj.virsh_dargs)
err_msg_expected = produce_expected_error(test_obj)
libvirt.check_result(ret, expected_fails=err_msg_expected)
# Some negative cases will fail to define the vm, so they will return
# to skip following steps
if err_msg_expected:
return
test_obj.test.log.debug("Step: start vm")
test_obj.vm.start()
test_obj.test.log.debug("After vm is started, vm xml:\n"
"%s", vm_xml.VMXML.new_from_dumpxml(test_obj.vm.name))
session = test_obj.vm.wait_for_login()
Expand Down

0 comments on commit e7313e1

Please sign in to comment.