2016-05-02 15:27:09 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Import python libs
|
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
|
|
# Import Salt Testing libs
|
2017-04-03 16:04:09 +00:00
|
|
|
from tests.support.case import ModuleCase
|
2016-05-02 15:27:09 +00:00
|
|
|
|
|
|
|
|
2017-04-03 16:04:09 +00:00
|
|
|
class GentoolkitModuleTest(ModuleCase):
|
2016-05-02 15:27:09 +00:00
|
|
|
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)
|