Blame tests/r_check_mod_packages/01_modpackages.sh

9dfb2c
#!/bin/bash
46d36f
# Author: Johnny Hughes <johnny@centos.org>
46d36f
# Note: This test is only for Pre Updates testing prior to releasing on CentOS
46d36f
2b3708
uname_arch=$(uname -m)
2b3708
46d36f
if [ $SKIP_QA_HARNESS -eq 1 ] && [ "$PRE_UPDATES" != "1" ] ; then
2b3708
    t_Log "Skip $0 in non QA harness environment"
2b3708
    ret_val=0
46d36f
else
46d36f
  ret_val=0
46d36f
  if [ "$centos_ver" = "7" ] ; then
62618b
acc328
   t_Log "Running $0 - Checking current repositories for .el7.centos on modified files"
Johnny Hughes 97c696
   uname_arch=$(uname -m)
46d36f
   yum clean all
62618b
    for pkg in $(cat tests/r_check_mod_packages/c72-mod-packages.lst.$uname_arch|grep -v '^#')
62618b
      do
46d36f
         has_centos=$(yum list $pkg | grep '.el7.centos')
46d36f
         if [ "$has_centos" == "" ]; then 
46d36f
           echo $pkg missing .el7.centos
46d36f
           ret_val=1
46d36f
         fi
46d36f
      done
46d36f
  else
2c674c
    t_Log "Skipping $0 - This test only for CentOS-7, skipping Modified Packages test ..."
46d36f
    ret_val=0
46d36f
  fi
46d36f
46d36f
46d36f
  t_CheckExitStatus $ret_val
46d36f
fi