Added Debian 9 support to storage test.

This commit is contained in:
Shital Savekar 2017-06-22 13:40:38 +05:30
Родитель 9217b3af17
Коммит b03d31de2e
1 изменённых файлов: 8 добавлений и 15 удалений

Просмотреть файл

@ -49,25 +49,18 @@ UpdateTestState()
InstallFIO() {
DISTRO=`grep -ihs "buntu\|Suse\|Fedora\|Debian\|CentOS\|Red Hat Enterprise Linux" /etc/{issue,*release,*version}`
if [[ $DISTRO =~ "Ubuntu" ]];
if [[ $DISTRO =~ "Ubuntu" ]] || [[ $DISTRO =~ "Debian" ]];
then
LogMsg "Detected UBUNTU"
LogMsg "Detected UBUNTU/Debian"
until dpkg --force-all --configure -a; sleep 10; do echo 'Trying again...'; done
apt-get update
apt-get install -y wget sysstat blktrace bc
mount -t debugfs none /sys/kernel/debug
installed=`which fio`
if [ ! $installed ]; then
LogMsg "INFO: Installing fio"
apt-get install -y fio ;
if [ $? -ne 0 ]; then
LogMsg "Error: Unable to install fio"
exit 1
fi
apt-get install -y wget sysstat blktrace bc gawk fio
if [ $? -ne 0 ]; then
LogMsg "Error: Unable to install fio"
exit 1
fi
mount -t debugfs none /sys/kernel/debug
elif [[ $DISTRO =~ "Red Hat Enterprise Linux Server release 6" ]];
then
LogMsg "Detected RHEL 6.x"