diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2018-06-11 14:36:34 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2018-06-11 14:36:34 +0200 |
commit | bb244e1d5e55a6c3cbd8bfb914ab93ede3b4826e (patch) | |
tree | 4552530c72e1d972d9f86ac336e26a587f05ed37 | |
parent | 14264463afb5e839075d5349c2d276e62f2346a1 (diff) |
disk_read_performance_test: Make the threshold configurable
Default 15MB/sec is sometimes too high for IOT systems.
-rwxr-xr-x | bin/disk_read_performance_test | 2 | ||||
-rw-r--r-- | units/disk/jobs.pxu | 1 |
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 |