mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43763 from twangboy/win_fix_test_disk
Fix `unit.modules.test_disk` for Windows
This commit is contained in:
commit
a48afa7175
1 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,8 @@ 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
|
||||
|
|
Loading…
Add table
Reference in a new issue