diff options
author | Mateusz Kusiak <mateusz.kusiak@intel.com> | 2024-02-20 17:04:44 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-02-23 12:49:16 +0100 |
commit | 4c12714d1ca06533fe7a887966df2558fd2f96b2 (patch) | |
tree | 0d97bec05172e822a4e3cbc64233d1c84650ed37 /tests | |
parent | mdmon: refactor md device name check in main() (diff) | |
download | mdadm-4c12714d1ca06533fe7a887966df2558fd2f96b2.tar.xz mdadm-4c12714d1ca06533fe7a887966df2558fd2f96b2.zip |
test: run tests on system level mdadm
The tests run with MDADM_NO_SYSTEMCTL flag by default, however it has
no effect on udev. In case of external metadata, even if flag is set,
udev will trigger systemd to launch mdmon.
This commit changes test execution level, so the tests are run on system
level mdadm, meaning local build must be installed prior to running
tests.
Add warning that the tests are run on system level mdadm and local
build must be installed first.
Do not call mdadm with "quiet" as it makes it not display critical
messages necessary for debug.
Remove forcing speed_limit and add restoring system speed_limit_max
after test execution.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/func.sh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/func.sh b/tests/func.sh index 1c1a28a2..b474442b 100644 --- a/tests/func.sh +++ b/tests/func.sh @@ -213,7 +213,6 @@ do_setup() { path1=$dev7 ulimit -c unlimited [ -f /proc/mdstat ] || modprobe md_mod - echo 2000 > /proc/sys/dev/raid/speed_limit_max echo 0 > /sys/module/md_mod/parameters/start_ro } |