mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add check for gem binary
This commit is contained in:
parent
210aceb402
commit
c97f3319b9
1 changed files with 3 additions and 0 deletions
|
@ -4,11 +4,13 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
# Import Salt Testing libs
|
||||
from salttesting import skipIf
|
||||
from salttesting.helpers import ensure_in_syspath, destructiveTest
|
||||
ensure_in_syspath('../../')
|
||||
|
||||
# Import salt libs
|
||||
import integration
|
||||
import salt.utils.which
|
||||
|
||||
GEM = 'rake'
|
||||
GEM_VER = '11.1.2'
|
||||
|
@ -18,6 +20,7 @@ DEFAULT_GEMS = ['bigdecimal', 'rake', 'json', 'rdoc']
|
|||
|
||||
|
||||
@destructiveTest
|
||||
@skipIf(salt.utils.which('gem') is None, 'Gem is not available on the system')
|
||||
class GemModuleTest(integration.ModuleCase):
|
||||
'''
|
||||
Validate gem module
|
||||
|
|
Loading…
Add table
Reference in a new issue