mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #19427 from cachedout/kmod_skip
Skip kmod test if /etc/modules isn't present
This commit is contained in:
commit
f06b5ae344
@ -3,8 +3,11 @@
|
||||
:codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
|
||||
'''
|
||||
|
||||
# Import Python libs
|
||||
import os
|
||||
|
||||
# Import Salt Testing Libs
|
||||
from salttesting import TestCase
|
||||
from salttesting import TestCase, skipIf
|
||||
from salttesting.mock import MagicMock, patch
|
||||
|
||||
# Import Salt Libs
|
||||
@ -51,6 +54,7 @@ class KmodTestCase(TestCase):
|
||||
|
||||
# 'mod_list' function tests: 1
|
||||
|
||||
@skipIf(not os.path.isfile('/etc/modules'), '/etc/modules not present')
|
||||
def test_mod_list(self):
|
||||
'''
|
||||
Tests return a list of the loaded module names
|
||||
|
Loading…
Reference in New Issue
Block a user