提交 afeb4cde 编写于 作者: Q qizhu

live_snapshot/hotplug_mem: replace autotest_control stress with linux_stress

Signed-off-by: Nqizhu <qizhu@redhat.com>
上级 916e3025
- linux_stress:
only Linux
type = linux_stress
stress_time = 60
stress_duration = 60
# Please specify below params for stress test, or use default value as shown
# download_url = http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz
......@@ -23,9 +23,15 @@ def run(test, params, env):
vm.verify_alive()
stress = utils_test.VMStress(vm, 'stress')
stress.load_stress_tool()
stress_time = int(params.get('stress_time'))
if stress_time:
time.sleep(stress_time)
stress_duration = int(params.get('stress_duration', 0))
# NOTE: stress_duration = 0 ONLY for some legacy test cases using
# autotest stress.control as their sub test.
# Please DO define stress_duration to make sure the clean action
# being performed, if your case can not be controlled by time,
# use utils_test.VMStress() directly
if stress_duration:
time.sleep(stress_duration)
stress.unload_stress()
stress.clean()
vm.verify_kernel_crash()
......@@ -163,8 +163,7 @@
i386, i686:
install_path = "C:\Program Files\JAM Software\HeavyLoad"
Linux:
sub_type = autotest_control
test_control_file = stress.control
sub_type = linux_stress
test_timeout = 1800
variants stage:
- before:
......
......@@ -85,10 +85,7 @@
i386, i686:
install_path = "C:\Program Files\JAM Software\HeavyLoad"
Linux:
stress_test = autotest_control
test_control_file = stress.control
# Use a low stress to make sure guest can response during stress
control_args = "--cpu 4 --io 4 --vm 2 --vm-bytes 256M"
stress_test = linux_stress
test_timeout = 1800
check_cmd = 'pgrep stress'
stop_cmd = "killall -g stress"
......@@ -128,7 +125,6 @@
create_command = "dd if=/dev/urandom of=FILE bs=128k count=100"
file_names = "/home/live_snapshot_base /home/live_snapshot_sn1"
test_exists_cmd = "test -f FILE"
control_args = "--cpu 1 --vm 1 --vm-bytes 16M"
sync_cmd = "sync"
- transaction:
type = live_snapshot_transaction
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册