Skip test_fstype on Windows

no lsblk on Windows
This commit is contained in:
twangboy 2017-11-09 14:45:15 -07:00
parent b9ad4bba2d
commit e5a96fe00f
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'), 'lsblk not found')
def test_fstype(self):
'''
unit tests for disk.fstype