skip tests on appropriate platforms

This commit is contained in:
Tyler Johnson 2019-10-16 10:41:04 -06:00
parent f5ebe3ed8b
commit 61c77a3802
No known key found for this signature in database
GPG Key ID: 691E31397E27D004
2 changed files with 2 additions and 0 deletions

View File

@ -2008,6 +2008,7 @@ class StateModuleTest(ModuleCase, SaltReturnAssertsMixin):
'File {0} updated'.format(file_name))
self.assertEqual(val['changes']['diff'], 'New file')
@skipIf(six.PY3 and salt.utils.platform.is_darwin(), 'Test is broken on macosx and PY3')
def test_issue_30161_unless_and_onlyif_together(self):
'''
test cmd.run using multiple unless options where the first cmd in the

View File

@ -32,6 +32,7 @@ from salt.ext import six
@skipIf(NO_MOCK, NO_MOCK_REASON)
@skipIf(not salt.utils.platform.is_darwin(), 'These tests run only on mac')
class MacUtilsTestCase(TestCase, LoaderModuleMockMixin):
'''
test mac_utils salt utility