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
46d36f
if [ $SKIP_QA_HARNESS -eq 1 ] && [ "$PRE_UPDATES" != "1" ] ; then
46d36f
    t_Log "Skip this test in non QA harness environment"
46d36f
    ret_val=0
46d36f
else
46d36f
  ret_val=0
46d36f
  if [ "$centos_ver" = "7" ] ; then
acc328
   
acc328
   t_Log "Running $0 - Checking current repositories for .el7.centos on modified files"
46d36f
   yum clean all
f57e55
    for pkg in PackageKit abrt apache-commons-net anaconda basesystem centos-indexhtml centos-logos centos-release chrony compat-glibc dhcp firefox glusterfs grub2 httpd initial-setup ipa-client kabi-yum-plugins kde-settings libreport ntp oscap-anaconda-addon openssl098e pcs plymouth redhat-rpm-config redhat-lsb scap-security-guide shim-unsigned-ia32 shim-unsigned-x64 sos subscription-manager system-config-date system-config-kdump thunderbird xulrunner yum 
46d36f
      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