summaryrefslogtreecommitdiff
diff options
authorUbuntu <ubuntu@cert-jenkins-slave-1-201406-15260.maas>2021-09-28 13:55:40 +0000
committerUbuntu <ubuntu@cert-jenkins-slave-1-201406-15260.maas>2021-09-28 13:55:40 +0000
commit792410e6aefcd3488d5e4796df340182498908e8 (patch)
treeb2648094482ff20a1676ebf0bea01da162f60739
parent64bc38f6a6799f1b76e86419f3d1b43be3cb009b (diff)
parent879b7898cacdc30331ef7fe77b4ebb906a92d314 (diff)
Merge #408601 from ~bettyl/plainbox-provider-checkbox:stress-ng-add-parameters
-rw-r--r--units/stress/stress-ng.pxu9
1 files changed, 8 insertions, 1 deletions
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