]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm/tests: test enhance
authorXiao Ni <xni@redhat.com>
Wed, 22 May 2024 08:50:41 +0000 (16:50 +0800)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Fri, 24 May 2024 08:04:23 +0000 (10:04 +0200)
commit6e8af9475cf0ac22f7ac167040dbf92fbfdd97ab
tree8e948ca90a100ce69014925cbd368f4fc19da698
parentf79f7189aa25b9da51736f2c578a51c2c4fe7706
mdadm/tests: test enhance

There are two changes.
First, if md module is not loaded, it gives error when reading
speed_limit_max. So read the value after loading md module which
is done in do_setup

Second, sometimes the test reports error sync action doesn't
happen. But dmesg shows sync action is done. So limit the sync
speed before test. It doesn't affect the test run time. Because
check wait sets the max speed before waiting sync action. And
recording speed_limit_max/min in do_setup.

Fixes: 4c12714d1ca0 ('test: run tests on system level mdadm')
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
test
tests/func.sh