Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion KVM/qemu/tests/feature_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,17 @@ def disable_parallel_run(test, session):

def get_test_results(test, output, vm, session):
"""
Install test framework avocado in guest.
Copy guest avocado run result to host.
:param test: QEMU test object
:param output: The output in guest test
:param vm: The vm object
:param session: Guest session
"""
# BM test may be terminated with some reasons, then no valid result.
test_terminate = "Terminate the test"
if test_terminate in output:
test.fail("Guest %s " % output)

remove_str = "job.log"
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
Expand Down
Loading