summaryrefslogtreecommitdiffstats
path: root/tests/09imsm-create-fail-rebuild (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests, imsm: Calculate expected array_size in proper wayMichal Zylowski2018-07-111-2/+2
| | | | | | | | | | | | | Tests should calucalte expected array_size accordingly to raid level. Also tests should take care about runding to neares MB introduced from b53bfba6 "imsm: use rounded size for metadata initialization". Expect proper size in tests. Simplify 09imsm-overlap test by creating array with size which has not been rounded. Main purpose of this test is checking something else. Signed-off-by: Michal Zylowski <michal.zylowski@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
* tests, imsm: Set correct expected offset between volumesMichal Zylowski2018-07-111-2/+2
| | | | | | | | | | | Since 611d9529 (imsm: change reserved space to 4MB) gap between RAID volumes has changed. Tests should expect correct offset in size calulations. Fix expected offset for tests. Signed-off-by: Michal Zylowski <michal.zylowski@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
* tests: never fail if --wait fails.NeilBrown2015-05-071-1/+1
| | | | | | | | | "--wait" will return non-zero status if it didn't need to wait. This is no a reason to fail a test. So ignore the return status from those commands. Signed-off-by: NeilBrown <neilb@suse.de>
* Remove lots of unnecessary white space.NeilBrown2013-06-191-1/+0
| | | | | | | Now that I am using white-space mode in Emacs I can see all of this, and I don't like it :-) Signed-off-by: NeilBrown <neilb@suse.de>
* Create: round off size for RAID1 arrays.NeilBrown2012-03-221-1/+1
| | | | | | | | | | | RAID1 arrays don't have a chunk size, but if you ever convert one to RAID5 you will need at least a small one >= 4K. So round of size to a multiple of 64K. This only affect Create, not "--grow --size=max". The latter is too hard and with smaller returns. Signed-off-by: NeilBrown <neilb@suse.de>
* Remove more duplicated codeNeilBrown2011-06-151-71/+5
| | | | | | | Code from env-imsm-template is also in 09imsm-create-fail-rebuild, so remove it from there. Signed-off-by: NeilBrown <neilb@suse.de>
* Fix imsm-overlap test.NeilBrown2011-06-151-5/+5
| | | | | | | | | Now that we reserve space for migration buffer devices are a little bit smaller so we need to allow for that in the test suite. Also add a 'udevadm settle' - it seems to help Signed-off-by: NeilBrown <neilb@suse.de>
* tests: add IMSM_NO_PLATFORM to some places that were missing it.NeilBrown2011-02-011-0/+1
| | | | Signed-off-by: NeilBrown <neilb@suse.de>
* test: remove all the environment handling.NeilBrown2011-02-011-0/+85
| | | | | | | Instead, just include the environ explicitly in the test file or, where shared, source the shared file. Signed-off-by: NeilBrown <neilb@suse.de>
* tests/imsm: allow for rounding of array size.NeilBrown2009-10-161-0/+3
| | | | | | | IMSM rounds array size to a multiple of 1024K, so our tests must assume this. Signed-off-by: NeilBrown <neilb@suse.de>
* imsm: provide a simulated option-rom for regression testsDan Williams2009-02-231-0/+56
IMSM_NO_PLATFORM turns off checks that should be tested, so provide a IMSM_TEST_OROM variable to allow testing the orom constraints in the mdadm regression suite. Signed-off-by: Dan Williams <dan.j.williams@intel.com>