summaryrefslogtreecommitdiff
path: root/units/stress
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2020-10-07 17:21:12 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2020-10-07 17:22:21 +0200
commitbc44637c0c6d4c6ee42d1cf7538dd911623350ab (patch)
tree864c84a2cba47b754c839b7130171cea2bd21af6 /units/stress
parent45d62aff89eee775c96a0f5b793a966f24fac6d9 (diff)
stress: Run stress-ng cpu and memory tests using systemd-inhibit
This runs stress-ng and inhibits system sleeping, shutdown and idle while doing so. Fixes lp:1815867
Diffstat (limited to 'units/stress')
-rw-r--r--units/stress/jobs.pxu4
1 files changed, 2 insertions, 2 deletions
diff --git a/units/stress/jobs.pxu b/units/stress/jobs.pxu
index aa12e28..2114b39 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"
- stress_ng_test.py cpu --base-time "$STRESS_NG_CPU_TIME"
+ systemd-inhibit stress_ng_test.py 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
- stress_ng_test.py cpu --base-time 7200
+ systemd-inhibit stress_ng_test.py cpu --base-time 7200
fi
_summary:
Stress of CPUs (very long runtime)