diff options
author | PMR <pmr@pmr-lander> | 2020-10-08 13:11:07 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2020-10-08 13:11:07 +0000 |
commit | 231ee996bb815c03cfe1034712eadeaf66766f75 (patch) | |
tree | 677bf7948c2a4830754c10bac77920e025190ae8 /units | |
parent | 87b7dcd67ffa98b121d7cb15f9fe3e3ee89b49ae (diff) | |
parent | bc44637c0c6d4c6ee42d1cf7538dd911623350ab (diff) |
Merge #391931 from ~sylvain-pineau/plainbox-provider-checkbox:fix-1815867
stress-ng: Run cpu and memory tests using systemd-inhibit
Diffstat (limited to 'units')
-rw-r--r-- | units/memory/jobs.pxu | 2 | ||||
-rw-r--r-- | units/stress/jobs.pxu | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/units/memory/jobs.pxu b/units/memory/jobs.pxu index 565493a..3cb6b5b 100644 --- a/units/memory/jobs.pxu +++ b/units/memory/jobs.pxu @@ -47,7 +47,7 @@ user: root environ: STRESS_NG_MIN_SWAP_SIZE requires: executable.name == 'stress-ng' -command: stress_ng_test.py memory +command: systemd-inhibit stress_ng_test.py 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 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) |