The test suite we use to indicate functional acceptance of a machine instance
Johnny Hughes
2016-05-23 14443220f45c4d01fe76eeb40edb589137188571
Merge pull request #18 from bstinsonmhk/fixup-failure-checking

Fixup PASS/FAIL reporting and just check all repos that are currently enabled
2 files modified
12 ■■■■ changed files
tests/z_rpminfo/check-rpminfo.py 11 ●●●●● patch | view | raw | blame | history
tests/z_rpminfo/check-rpminfo.sh 1 ●●●● patch | view | raw | blame | history
tests/z_rpminfo/check-rpminfo.py
@@ -27,12 +27,6 @@
log('Running check-rpminfo.py - Check rpminfo Attributes')
if str(os.getenv('PRE_UPDATES')) == '1':
    checkrepos = ['updates']
else:
    log('Not running in preupdates, checking all repos')
    checkrepos = ['extras', 'base', 'updates', 'centosplus']
# Set the required attributes and their values here. You may use shell-style
# globs in the value if necessary.
required_attrs = {
@@ -60,11 +54,8 @@
yb = yum.YumBase()
yb.conf.cache = 0
yb.repos.disableRepo('*')
for repo in checkrepos:
    yb.repos.enableRepo(repo)
yb.repos.doSetup()
log("Checking repos: {0}".format(', '.join([r.name for r in yb.repos.listEnabled()])))
sack = yb.pkgSack
tests/z_rpminfo/check-rpminfo.sh
@@ -5,6 +5,7 @@
if [[ $centos_ver != 5 ]] 
then
    python "$(dirname "$(readlink -f "$0")")/check-rpminfo.py"
    t_CheckExitStatus $?
else
    echo "Skipped on CentOS 5"
fi