mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
23 lines
605 B
Python
23 lines
605 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Import python libs
|
|
from __future__ import absolute_import
|
|
|
|
# Import Salt Testing libs
|
|
from tests.support.case import ModuleCase
|
|
|
|
|
|
class GentoolkitModuleTest(ModuleCase):
|
|
def setUp(self):
|
|
'''
|
|
Set up test environment
|
|
'''
|
|
super(GentoolkitModuleTest, self).setUp()
|
|
ret_grain = self.run_function('grains.item', ['os'])
|
|
if ret_grain['os'] not in 'Gentoo':
|
|
self.skipTest('For Gentoo only')
|
|
|
|
def test_revdep_rebuild_true(self):
|
|
ret = self.run_function('gentoolkit.revdep_rebuild')
|
|
self.assertTrue(ret)
|