mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Gate the tests for Mac OS X
This commit is contained in:
parent
ab205f52d4
commit
1094754085
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user