summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2018-06-11 14:29:33 +0000
committerPMR <pmr@pmr-lander>2018-06-11 14:29:33 +0000
commit4ba088e8272fae98bacc9b975897c6263ae4195a (patch)
tree5e99afec4a7701d5453790475bc41279a7d7d131
parent79b590a03bcfdb5c4db7b1003cfc8f0de18f57c0 (diff)
parentbb244e1d5e55a6c3cbd8bfb914ab93ede3b4826e (diff)
Merge #347753 from ~sylvain-pineau/plainbox-provider-checkbox:configurable_disk_read_perf
-rwxr-xr-xbin/disk_read_performance_test2
-rw-r--r--units/disk/jobs.pxu1
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/disk_read_performance_test b/bin/disk_read_performance_test
index e2a219d..00810a5 100755
--- a/bin/disk_read_performance_test
+++ b/bin/disk_read_performance_test
@@ -4,7 +4,7 @@
#
#Default to a lower bound of 15 MB/s
-DEFAULT_BUF_READ=15
+DEFAULT_BUF_READ=${DISK_READ_PERF:-15}
for disk in $@; do
diff --git a/units/disk/jobs.pxu b/units/disk/jobs.pxu
index 2ee08d7..3de5532 100644
--- a/units/disk/jobs.pxu
+++ b/units/disk/jobs.pxu
@@ -61,6 +61,7 @@ requires:
_summary: Disk performance test for {product_slug}
_description: Verify that disk storage performs at or above baseline performance
user: root
+environ: DISK_READ_PERF
command: disk_read_performance_test {name}
unit: template