mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
disable pkg.hold test for RHEL/CentOS 5
This commit is contained in:
parent
4cacd93c22
commit
7a26c2b5b9
1 changed files with 6 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue