mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Skip test_resize2fs if resize2fs does not exists (#36325)
This commit is contained in:
parent
b9b8e45362
commit
dc518c5340
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ class TestBlockdevModule(TestCase):
|
|||
with patch.dict(blockdev.__salt__, {'cmd.run': mock}):
|
||||
self.assertEqual(blockdev.fstype(device), fs_type)
|
||||
|
||||
@skipIf(not salt.utils.which('resize2fs'), 'resize2fs not found')
|
||||
def test_resize2fs(self):
|
||||
'''
|
||||
unit tests for blockdev.resize2fs
|
||||
|
|
Loading…
Add table
Reference in a new issue