diff options
author | PMR <pmr@pmr-lander> | 2019-08-26 13:37:05 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2019-08-26 13:37:05 +0000 |
commit | f86587bb535f6f63d247f6e6d41edf1d7c308108 (patch) | |
tree | e8ab54ae8aa7477901ec28aa5067ae7832b52d5c /units/disk | |
parent | 4e79129c7ab2e6663d986ba708f4afac538edb06 (diff) | |
parent | 82092fb10b2142b3e03307c1cb411d68cb1af311 (diff) |
Merge #371787 from ~taihsiangho/plainbox-provider-checkbox:mr-support-stress-ng-env-var
Diffstat (limited to 'units/disk')
-rw-r--r-- | units/disk/jobs.pxu | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/units/disk/jobs.pxu b/units/disk/jobs.pxu index b2e43010..3e0f5682 100644 --- a/units/disk/jobs.pxu +++ b/units/disk/jobs.pxu @@ -90,7 +90,15 @@ requires: package.name == 'uuid-runtime' or executable.name == 'uuidgen' _summary: Disk stress_ng test for {product_slug} _description: Disk stress_ng test for {product_slug} -command: disk_stress_ng {name} --base-time 240 --really-run +command: + if [ -n "$STRESS_NG_DISK_TIME" ] + then + echo "Found STRESS_NG_DISK_TIME env var, stress_ng disk running time is now: $STRESS_NG_DISK_TIME seconds" + disk_stress_ng {name} --base-time $STRESS_NG_DISK_TIME --really-run + else + echo "STRESS_NG_DISK_TIME env var is not found, stress_ng disk running time is default value" + disk_stress_ng {name} --base-time 240 --really-run + fi unit: template template-resource: device |