summaryrefslogtreecommitdiff
path: root/units/stress
diff options
authorNara Huang <nara.huang@canonical.com>2021-02-26 14:10:04 +0800
committerNara Huang <nara.huang@canonical.com>2021-02-26 14:10:04 +0800
commit682b471410e8c4d3dd304dd5c93b7baa328abbd9 (patch)
tree93d636836716ccfcfbef0dd399ce7a0387c0cc3e /units/stress
parent24b9fa01cf1bb88dcffd561ac2e745ae524763a5 (diff)
Add environment timeout for stress-ng-classes
Diffstat (limited to 'units/stress')
-rw-r--r--units/stress/stress-ng.pxu3
1 files changed, 2 insertions, 1 deletions
diff --git a/units/stress/stress-ng.pxu b/units/stress/stress-ng.pxu
index 9cbe615..9083fe6 100644
--- a/units/stress/stress-ng.pxu
+++ b/units/stress/stress-ng.pxu
@@ -27,5 +27,6 @@ _description:
same number of proccesses as online processors.
plugin: shell
estimated_duration: 1200.0
+environ: STRESS_NG_CLASSES_TIMEOUT
command:
- stress-ng --sequential 0 --class {stress-ng-class}
+ stress-ng --sequential 0 --class {stress-ng-class} --timeout "${{STRESS_NG_CLASSES_TIMEOUT:-30}}"