@@ -23,13 +23,13 @@ def run_ioquit(test, params, env):
(s, o) = session.get_command_status_output(bg_cmd, timeout=60)
check_cmd = params.get("check_cmd")
(s, o) = session2.get_command_status_output(check_cmd, timeout=60)
- if int(o) <= 0:
+ if s:
raise error.TestError("Fail to add IO workload for Guest OS")
logging.info("Sleep for a while")
time.sleep(random.randrange(30,100))
- (s, o) = session2.get_command_status_output(check_cmd, timeout=300)
- if int(o) <= 0:
+ (s, o) = session2.get_command_status_output(check_cmd, timeout=60)
+ if s:
logging.info("IO workload finished before the VM was killed")
logging.info("Kill the virtual machine")
vm.process.close()
@@ -411,7 +411,7 @@ variants:
- ioquit:
type = ioquit
background_cmd = "for i in 1 2 3 4; do (nohup dd if=/dev/urandom of=/tmp/file bs=102400 count=10000000 &) done"
- check_cmd = ps -a |grep dd |wc -l
+ check_cmd = ps -a |grep dd
login_timeout = 360
- qemu_img: