Gate the tests for Mac OS X

This commit is contained in:
twangboy 2016-03-09 11:59:42 -07:00
parent ab205f52d4
commit 1094754085

View File

@ -26,6 +26,12 @@ class MacXattrModuleTest(integration.ModuleCase):
'''
Create test file for testing extended attributes
'''
if not salt.utils.is_darwin():
self.skipTest('Test only available on Mac OS X')
if not salt.utils.which('xattr'):
self.skipTest('Test requires xattr binary')
self.run_function('file.touch', [test_file])
super(MacXattrModuleTest, self).setUp()