disable pkg.hold test for RHEL/CentOS 5

This commit is contained in:
Justin Findlay 2015-06-17 16:36:36 -06:00
parent 4cacd93c22
commit 7a26c2b5b9

View file

@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
# Import Salt Testing libs
from salttesting.helpers import (
destructiveTest,
@ -121,6 +123,10 @@ class PkgModuleTest(integration.ModuleCase,
os_major_release = self.run_function('grains.item', ['osmajorrelease'])['osmajorrelease']
available = self.run_function('sys.doc', ['pkg.hold'])
if os_family == 'RedHat':
if os_major_release == '5':
self.skipTest('`yum versionlock` does not seem to work on RHEL/CentOS 5')
if available:
if os_family == 'RedHat':
lock_pkg = 'yum-versionlock' if os_major_release == '5' else 'yum-plugin-versionlock'