summaryrefslogtreecommitdiff
path: root/units/stress
diff options
authorJenkins <jenkins@cert-jenkins-master-201506-18558.maas>2021-11-08 12:57:51 +0000
committerJenkins <jenkins@cert-jenkins-master-201506-18558.maas>2021-11-08 12:57:51 +0000
commitcc7b00192b1d005ce6a0a857c3c63d0ed9174734 (patch)
tree8719129f76299213451c0806e50bb97cbc72509a /units/stress
parent367bac112ba08007d31fdff293610f34a091642b (diff)
Import plainbox-provider-checkbox_0.60.0~rc1.orig.tar.gzupstream-0.60.0_rc1patched-0.60.0_rc1-1
Diffstat (limited to 'units/stress')
-rw-r--r--units/stress/jobs.pxu16
-rw-r--r--units/stress/stress-ng.pxu9
2 files changed, 22 insertions, 3 deletions
diff --git a/units/stress/jobs.pxu b/units/stress/jobs.pxu
index a541e3a..544e7af 100644
--- a/units/stress/jobs.pxu
+++ b/units/stress/jobs.pxu
@@ -510,7 +510,9 @@ plugin:shell
category_id: com.canonical.plainbox::stress
id: stress/s2idle_pm-graph_30
estimated_duration: 10m
-requires: executable.name == 'sleepgraph'
+requires:
+ executable.name == 'sleepgraph'
+ sleep.mem_sleep == 's2idle'
user: root
_summary: Resume from idle by using Intel pm-graph
command:
@@ -520,6 +522,10 @@ plugin: attachment
category_id: com.canonical.plainbox::stress
id: stress/s2idle_pm-graph_30.tar.xz
estimated_duration: 1
+requires:
+ sleep.mem_sleep == 's2idle'
+after:
+ stress/s2idle_pm-graph_30
user: root
_summary: Attach pm-graph logs (s2idle)
command:
@@ -529,7 +535,9 @@ plugin:shell
category_id: com.canonical.plainbox::stress
id: stress/s3_pm-graph_30
estimated_duration: 10m
-requires: executable.name == 'sleepgraph'
+requires:
+ executable.name == 'sleepgraph'
+ sleep.mem_sleep == 'deep'
user: root
_summary: Resume from suspend by using Intel pm-graph
command:
@@ -539,6 +547,10 @@ plugin: attachment
category_id: com.canonical.plainbox::stress
id: stress/s3_pm-graph_30.tar.xz
estimated_duration: 1
+requires:
+ sleep.mem_sleep == 'deep'
+after:
+ stress/s3_pm-graph_30
user: root
_summary: Attach pm-graph logs (s3)
command:
diff --git a/units/stress/stress-ng.pxu b/units/stress/stress-ng.pxu
index 8dd6853..adca084 100644
--- a/units/stress/stress-ng.pxu
+++ b/units/stress/stress-ng.pxu
@@ -30,4 +30,11 @@ estimated_duration: 1200.0
environ: STRESS_NG_CLASSES_TIMEOUT
command:
cd /var/tmp || exit $?
- stress-ng --sequential 0 --class {stress-ng-class} --timeout "${{STRESS_NG_CLASSES_TIMEOUT:-30}}"
+ stress-ng --sequential 0 --class {stress-ng-class} --timeout "${{STRESS_NG_CLASSES_TIMEOUT:-30}}" --skip-silent --verbose
+ # Error code definition - 3(no resource), 4(not implemented)
+ EXIT_CODE=$?
+ echo "EXIT_CODE="$EXIT_CODE
+ case $EXIT_CODE in
+ 0|3|4) exit 0;;
+ *) exit 1;;
+ esac