summaryrefslogtreecommitdiff
path: root/units
diff options
authorRod Smith <rod.smith@canonical.com>2020-02-06 10:56:14 -0500
committerRod Smith <rod.smith@canonical.com>2020-02-14 09:16:20 -0500
commit23ca741c1e5f1cf6c2d6de89450071e3a12169d9 (patch)
treedfef640e1b32bfbe5e0be5352a573af10090b21b /units
parentd0dc0398c90ab29741086e5dc6a314e2ce8f2b37 (diff)
Replace three stress-ng scripts with a unified script.
Diffstat (limited to 'units')
-rw-r--r--units/disk/jobs.pxu4
-rw-r--r--units/memory/jobs.pxu2
-rw-r--r--units/stress/jobs.pxu4
3 files changed, 5 insertions, 5 deletions
diff --git a/units/disk/jobs.pxu b/units/disk/jobs.pxu
index 3e0f568..431cb2e 100644
--- a/units/disk/jobs.pxu
+++ b/units/disk/jobs.pxu
@@ -94,10 +94,10 @@ command:
if [ -n "$STRESS_NG_DISK_TIME" ]
then
echo "Found STRESS_NG_DISK_TIME env var, stress_ng disk running time is now: $STRESS_NG_DISK_TIME seconds"
- disk_stress_ng {name} --base-time $STRESS_NG_DISK_TIME --really-run
+ stress_ng_test disk --device {name} --base-time $STRESS_NG_DISK_TIME
else
echo "STRESS_NG_DISK_TIME env var is not found, stress_ng disk running time is default value"
- disk_stress_ng {name} --base-time 240 --really-run
+ stress_ng_test disk --device {name} --base-time 240
fi
unit: template
diff --git a/units/memory/jobs.pxu b/units/memory/jobs.pxu
index 48d543c..f84fd3d 100644
--- a/units/memory/jobs.pxu
+++ b/units/memory/jobs.pxu
@@ -46,7 +46,7 @@ estimated_duration: 11000.0
user: root
requires:
package.name == 'stress-ng' or executable.name == 'stress-ng'
-command: memory_stress_ng
+command: stress_ng_test memory
_summary: Stress test of system memory
_description:
Test to perform some basic stress and exercise of system memory via the
diff --git a/units/stress/jobs.pxu b/units/stress/jobs.pxu
index cf44c6c..0a1ce27 100644
--- a/units/stress/jobs.pxu
+++ b/units/stress/jobs.pxu
@@ -22,10 +22,10 @@ command:
if [ -n "$STRESS_NG_CPU_TIME" ]
then
echo "Found STRESS_NG_CPU_TIME env var, stress_ng cpu running time is now: $STRESS_NG_CPU_TIME seconds"
- cpu_stress --runtime $STRESS_NG_CPU_TIME
+ stress_ng_test cpu --base-time $STRESS_NG_CPU_TIME
else
echo STRESS_NG_CPU_TIME env var is not found, stress_ng cpu running time is default value
- cpu_stress --runtime 7200
+ stress_ng_test cpu --base-time 7200
fi
_summary:
Stress of CPUs (very long runtime)