Skip to content

Commit

Permalink
Fix OSError in postprocess
Browse files Browse the repository at this point in the history
Wrong order of clearing LibvirtdDebugLogConfig causes OSError.

Signed-off-by: lcheng <[email protected]>
  • Loading branch information
cliping committed Sep 9, 2024
1 parent 22b34aa commit 5e90302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virttest/env_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -1759,6 +1759,8 @@ def postprocess(test, params, env):
err += "\nPolkit cleanup: %s" % str(details).replace("\\n", "\n ")
LOG.error("Unexpected error: %s" % details)

err += "\n".join(_setup_manager.do_cleanup())

# Execute any post_commands
if params.get("post_command"):
try:
Expand Down Expand Up @@ -1790,8 +1792,6 @@ def postprocess(test, params, env):
except exceptions.TestFail as details:
err += "\nHost dmesg verification failed: %s" % details

err += "\n".join(_setup_manager.do_cleanup())

# Run this hook after any vms are actually off to ensure data is
# written to disk.
if callable(postprocess_vm_off_hook):
Expand Down

0 comments on commit 5e90302

Please sign in to comment.