diff options
author | Michal Zylowski <michal.zylowski@intel.com> | 2018-06-22 16:34:09 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2018-07-11 19:16:24 +0200 |
commit | 2b2ccdc04b604ef8644a0f87dc27ccfbd2159cb9 (patch) | |
tree | 12938a9ab5f004ff655203c70b7233d908069520 | |
parent | tests, imsm: Fix unit inconsistency in tests error messages (diff) | |
download | mdadm-2b2ccdc04b604ef8644a0f87dc27ccfbd2159cb9.tar.xz mdadm-2b2ccdc04b604ef8644a0f87dc27ccfbd2159cb9.zip |
tests, imsm: Set new_num_disks value corectly to perform expected size calculations
In some migration tests, variable new_num_disks should be set to expected
number of disks after migration. This is required for proper expected size
calculation.
Pass new_num_disks variable during test execution for:
- 16imsm-r0_3d-migrate-r5_4d
- 18imsm-r1_2d-takeover-r0_1d
- 16imsm-r0_5d-migrate-r5_6d
Signed-off-by: Michal Zylowski <michal.zylowski@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r-- | tests/16imsm-r0_3d-migrate-r5_4d | 1 | ||||
-rw-r--r-- | tests/16imsm-r0_5d-migrate-r5_6d | 1 | ||||
-rw-r--r-- | tests/18imsm-r1_2d-takeover-r0_1d | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/16imsm-r0_3d-migrate-r5_4d b/tests/16imsm-r0_3d-migrate-r5_4d index 4f45479a..265adf94 100644 --- a/tests/16imsm-r0_3d-migrate-r5_4d +++ b/tests/16imsm-r0_3d-migrate-r5_4d @@ -15,6 +15,7 @@ vol0_offset=0 # After: RAID 5, 4 disks, 64k chunk size vol0_new_level=5 +new_num_disks=4 vol0_new_num_comps=$num_disks vol0_new_chunk=64 diff --git a/tests/16imsm-r0_5d-migrate-r5_6d b/tests/16imsm-r0_5d-migrate-r5_6d index bee505bf..535b6099 100644 --- a/tests/16imsm-r0_5d-migrate-r5_6d +++ b/tests/16imsm-r0_5d-migrate-r5_6d @@ -17,5 +17,6 @@ vol0_offset=0 vol0_new_level=5 vol0_new_num_comps=$num_disks vol0_new_chunk=64 +new_num_disks=6 . tests/imsm-grow-template 0 1 diff --git a/tests/18imsm-r1_2d-takeover-r0_1d b/tests/18imsm-r1_2d-takeover-r0_1d index cb10ec97..fd5852ed 100644 --- a/tests/18imsm-r1_2d-takeover-r0_1d +++ b/tests/18imsm-r1_2d-takeover-r0_1d @@ -17,6 +17,6 @@ vol0_offset=0 vol0_new_level=0 vol0_new_num_comps=1 vol0_new_chunk=64 -new_num_disks=0 +new_num_disks=1 . tests/imsm-grow-template 0 1 |