drive_mirror tests: small cleanups

Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 4047f139
......@@ -37,7 +37,7 @@ class DriveMirrorPowerdown(drive_mirror_stress.DriveMirrorStress):
params = self.parser_test_args()
image_file = params.get("image_file")
target_image = params.get("target_image")
cmd = "yes|mv %s %s" % (target_image, image_file)
cmd = "mv -f %s %s" % (target_image, image_file)
error.context("copy target image")
utils.system(cmd)
error.context("powerup vm with target image", logging.info)
......@@ -47,7 +47,7 @@ class DriveMirrorPowerdown(drive_mirror_stress.DriveMirrorStress):
params = self.parser_test_args()
image_file = params.get("image_file")
super(DriveMirrorPowerdown, self).clean()
cmd = "yes|mv %s-bak %s" % (image_file, image_file)
cmd = "mv -f %s-bak %s" % (image_file, image_file)
utils.system(cmd)
def run_drive_mirror_powerdown(test, params, env):
......
......@@ -35,13 +35,13 @@ class DriveMirrorStress(drive_mirror.DriveMirror):
@error.context_aware
def load_stress(self):
"""
load IO/CPU/Memoery stress in guest;
load IO/CPU/Memory stress in guest;
"""
params = self.parser_test_args()
self.install_stress_app()
cmd = params.get("start_cmd")
session = self.get_session()
error.context("lanuch stress app in guest", logging.info)
error.context("launch stress app in guest", logging.info)
session.sendline(cmd)
logging.info("Command: %s" % cmd)
runing = utils_misc.wait_for(self.app_runing, first=0.5, timeout=300)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册