summaryrefslogtreecommitdiffstats
path: root/tests/storage/devicelibs/mdraid.py
Commit message (Collapse)AuthorAgeFilesLines
* Added the run_test.py script to easily run the test cases.Martin Gracik2009-03-171-5/+7
| | | | | | Some small changes to test cases were needed. Added suite() function to them and changed the class names. Also __init__.py files were added to the directories.
* Added test case for devicelib mdraid.py.Martin Gracik2009-03-131-0/+105
Rewrote the devicelibs unittest baseclass so we can create and remove another loop devices within the tests. Rewrote the isRaidXY(raidlevel) functions in mdraid.py into one function isRaid(XY, raidlevel). Rewrote the get_raid_min_members and get_raid_max_spares functions to use the new isRaid function, and not use many if-elif-else statements. Changed the minimum raid members for raid10 to 2.