24f846cea4
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>
40 lines
961 B
Bash
Executable File
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
|
|
|
|
|
|
|