mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Skip tests on Linux systems
This commit is contained in:
parent
0ca9cd1cfa
commit
97567af232
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,7 @@ class WinServiceTestCase(TestCase, LoaderModuleMockMixin):
|
|||
patch.object(win_service, 'status', mock_true):
|
||||
self.assertTrue(win_service.start('spongebob'))
|
||||
|
||||
@skipIf(not WINAPI, 'pywintypes not available')
|
||||
def test_start_already_running(self):
|
||||
'''
|
||||
Test starting a service that is already running
|
||||
|
@ -174,6 +175,7 @@ class WinServiceTestCase(TestCase, LoaderModuleMockMixin):
|
|||
patch.object(win_service, 'status', mock_false):
|
||||
self.assertTrue(win_service.stop('spongebob'))
|
||||
|
||||
@skipIf(not WINAPI, 'pywintypes not available')
|
||||
def test_stop_not_running(self):
|
||||
'''
|
||||
Test stopping a service that is already stopped
|
||||
|
|
Loading…
Add table
Reference in a new issue