Skip test if missing binaries

This commit is contained in:
twangboy 2017-09-26 15:51:22 -06:00
parent 2581098595
commit 26b23b37bc
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -152,6 +152,7 @@ class DiskTestCase(TestCase, LoaderModuleMockMixin):
with patch.dict(disk.__salt__, {'cmd.retcode': mock}):
self.assertEqual(disk.format_(device), True)
@skipIf(not salt.utils.which('lsblk') and not salt.utils.which('df'), 'lsblk or df not found')
def test_fstype(self):
'''
unit tests for disk.fstype