summaryrefslogtreecommitdiff
path: root/units/stress
diff options
authorLukas Waymann <lukas.waymann@canonical.com>2021-04-21 16:31:04 +0800
committerLukas Waymann <lukas.waymann@canonical.com>2021-04-21 16:31:04 +0800
commit0fa4c5e9de58683e0b845cb91cadec22061b1557 (patch)
tree22d953aafc9b7665f576f7739fea56a1ee1e30db /units/stress
parenta80d11ecd2b0d21eaad6358c0b3d9b43b04c6363 (diff)
Fix ShellCheck warning
Diffstat (limited to 'units/stress')
-rw-r--r--units/stress/stress-ng.pxu2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/stress/stress-ng.pxu b/units/stress/stress-ng.pxu
index 7042d0f..8dd6853 100644
--- a/units/stress/stress-ng.pxu
+++ b/units/stress/stress-ng.pxu
@@ -29,5 +29,5 @@ plugin: shell
estimated_duration: 1200.0
environ: STRESS_NG_CLASSES_TIMEOUT
command:
- cd /var/tmp
+ cd /var/tmp || exit $?
stress-ng --sequential 0 --class {stress-ng-class} --timeout "${{STRESS_NG_CLASSES_TIMEOUT:-30}}"