提交 1607c119 编写于 作者: X Xiyue Wang

drive_mirror_stress: add error_context.context_aware to user error_context for log

Signed-off-by: NXiyue Wang <xiywang@redhat.com>
上级 31b1d95d
...@@ -10,6 +10,7 @@ from qemu.tests import drive_mirror ...@@ -10,6 +10,7 @@ from qemu.tests import drive_mirror
class DriveMirrorStress(drive_mirror.DriveMirror): class DriveMirrorStress(drive_mirror.DriveMirror):
@error_context.context_aware
def load_stress(self): def load_stress(self):
""" """
load IO/CPU/Memory stress in guest; load IO/CPU/Memory stress in guest;
...@@ -26,6 +27,7 @@ class DriveMirrorStress(drive_mirror.DriveMirror): ...@@ -26,6 +27,7 @@ class DriveMirrorStress(drive_mirror.DriveMirror):
time.sleep(10) time.sleep(10)
return None return None
@error_context.context_aware
def unload_stress(self): def unload_stress(self):
""" """
stop stress app stop stress app
...@@ -54,6 +56,7 @@ class DriveMirrorStress(drive_mirror.DriveMirror): ...@@ -54,6 +56,7 @@ class DriveMirrorStress(drive_mirror.DriveMirror):
session.close() session.close()
return status == 0 return status == 0
@error_context.context_aware
def verify_steady(self): def verify_steady(self):
""" """
verify offset not decreased, after block mirror job in steady status; verify offset not decreased, after block mirror job in steady status;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册