diff options
| author | PMR <pmr@pmr-lander> | 2020-02-19 16:58:09 +0000 |
|---|---|---|
| committer | PMR <pmr@pmr-lander> | 2020-02-19 16:58:09 +0000 |
| commit | ccb85fdafe8f45865873ebd8556b9cd9c55ea31c (patch) | |
| tree | 230f6ee31b386d503f4969d4b745ae08cf15c4f3 | |
| parent | 388595379657d9b49733dbb30240fde97a2bfdc1 (diff) | |
| parent | 8db323dff71d83d64b5b3e53e7700c1399dd62b1 (diff) | |
Merge #379460 from ~kissiel/plainbox-provider-checkbox:fix-raid-testing
| -rwxr-xr-x | bin/disk_read_performance_test | 2 | ||||
| -rwxr-xr-x | bin/storage_test.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/disk_read_performance_test b/bin/disk_read_performance_test index fec27c2..8d6d6a0 100755 --- a/bin/disk_read_performance_test +++ b/bin/disk_read_performance_test @@ -49,7 +49,7 @@ for disk in $@; do "ide" ) MIN_BUF_READ=40;; "mmc" ) MIN_BUF_READ=$DEFAULT_BUF_READ;; "nvme" ) MIN_BUF_READ=200;; - "mdadm" ) MIN_BUF_READ=500;; + "mdadm" ) MIN_BUF_READ=80;; * ) MIN_BUF_READ=$DEFAULT_BUF_READ;; esac echo "INFO: $disk_type: Using $MIN_BUF_READ MB/sec as the minimum throughput speed" diff --git a/bin/storage_test.py b/bin/storage_test.py index 4f363bc..1481a0d 100755 --- a/bin/storage_test.py +++ b/bin/storage_test.py @@ -30,7 +30,7 @@ def find_largest_partition(device): out = sp.check_output(cmd, shell=True) blk_devs = [BlkDev(*p.strip().split()) for p in out.decode(sys.stdout.encoding).splitlines()] - blk_devs[:] = [bd for bd in blk_devs if bd.type == 'part'] + blk_devs[:] = [bd for bd in blk_devs if bd.type in ('part', 'md')] if not blk_devs: raise SystemExit( 'ERROR: No partitions found on device {}'.format(device)) |
