Skip to content

Commit

Permalink
KVM: Enhance feature_test so that get guest log more accurate
Browse files Browse the repository at this point in the history
Signed-off-by: Xudong Hao <[email protected]>
  • Loading branch information
xhao22 committed Oct 8, 2024
1 parent 7924538 commit 0c6dc6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KVM/qemu/tests/feature_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_test_results(test, output, vm, session):
:param session: Guest session
"""
remove_str = "job.log"
guest_log = re.sub(remove_str, "", output.splitlines()[1].split(":")[1].strip())
guest_log = re.sub(remove_str, "", re.search(r'.*JOB LOG\s*:\s(.*)', output).group(1))
# Delete the symbolic link to avoid remote copy failure
session.cmd("rm %s/test-results/by-status -rf" % guest_log, ignore_all_errors=True)

Expand Down

0 comments on commit 0c6dc6a

Please sign in to comment.