bstinson / centos / t_functional

Forked from centos/t_functional 3 years ago
Clone

Blame tests/p_anaconda/anaconda_centos_patch.sh

Athmane Madjoudj a2faee
#!/bin/sh
Athmane Madjoudj a2faee
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj a2faee
Athmane Madjoudj a2faee
t_Log "Running $0 - CentOS Anaconda patch is applied test."
Athmane Madjoudj a2faee
Johnny Hughes 97c696
uname_arch=$(uname -m)
c2e4f9
if [ "$centos_ver" -eq "8" ]; then
c2e4f9
  t_Log "c8 => SKIPPING"
c2e4f9
  exit 0
c2e4f9
fi
Johnny Hughes 97c696
2b3708
if [ "$uname_arch" == "aarch64" ] || [ "$uname_arch" == "i686" ] || [ "$uname_arch" == "armv7l" ]; then
2b3708
  t_Log "*** Not testing on Arch: $uname_arch ***"
Johnny Hughes 97c696
  exit 0
Johnny Hughes 97c696
fi
Johnny Hughes 97c696
20a4c0
if [ "$centos_ver" = "7" ];then
20a4c0
  ANACONDA_PATH=/usr/lib64/python2.7/site-packages/pyanaconda/
87eada
  ANACONDA_FILE="centos.py"
20a4c0
else
20a4c0
  ANACONDA_PATH=/usr/lib/anaconda/
87eada
  ANACONDA_FILE="rhel.py"
20a4c0
fi
Athmane Madjoudj a2faee
Athmane Madjoudj a2faee
9be40f
grep "CentOS Linux" $ANACONDA_PATH/installclasses/$ANACONDA_FILE >/dev/null 2>&1 
Athmane Madjoudj a2faee
Athmane Madjoudj a2faee
Athmane Madjoudj a2faee
t_CheckExitStatus $?