qemu/tests/migration.py: Log extra info during migration

Add the appropriate context when we're checking the status
of the background processes pre and post migration.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 1cba3c0a
......@@ -5,6 +5,7 @@ from autotest.client.shared import error
from virttest import utils_misc, utils_test, aexpect
@error.context_aware
def run(test, params, env):
"""
KVM migration test:
......@@ -149,6 +150,8 @@ def run(test, params, env):
try:
check_command = params.get("migration_bg_check_command", "")
error.context("Checking the background command in the guest "
"pre migration", logging.info)
session2.cmd(check_command, timeout=30)
session2.close()
......@@ -192,6 +195,8 @@ def run(test, params, env):
logging.info("Logged in after migration")
# Make sure the background process is still running
error.context("Checking the background command in the guest "
"post migration", logging.info)
session2.cmd(check_command, timeout=30)
# Get the output of migration_test_command
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册