mdadm/tests/md_raid_module/main.sh
Xiao Ni 24f846cea4 Add gating tests
Now it doesn't have the tests directory, so the gating test fails.
This is used to support the last commit. And it uses the same bugs
from the last commit.

Resolves: rhbz#2116418, rhbz#2150862, rhbz#2159584

Signed-off-by: Xiao Ni <xni@redhat.com>
2023-05-17 20:26:25 +08:00

40 lines
961 B
Bash
Executable File

#!/bin/bash
###this case just test raid modeule exit
source include.sh || exit 200
uname -a
for i in 0 1 456 10 ;do
tok "modprobe raid$i "
tok "lsmod |grep raid$i "
if [ $? = 0 ];then
echo "have insert raid0 to OS"
tok "modprobe -r raid$i"
sleep 5
tok "modprobe raid$i "
sleep 5
tok "modprobe -r raid$i"
sleep 5
tok "modprobe raid$i"
sleep 5
else
echo "have no inset this module"
tok "modprobe raid$i"
sleep 5
tok "modprobe -r raid$i"
sleep 5
tok "modprobe raid$i"
sleep 5
tok "modprobe -r raid$i"
fi
done
tend