Skip to content

Commit

Permalink
Skip test_resize2fs if resize2fs does not exists (saltstack#36325)
Browse files Browse the repository at this point in the history
  • Loading branch information
meaksh authored and Nicole Thomas committed Sep 15, 2016
1 parent b9b8e45 commit dc518c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/modules/blockdev_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def test_fstype(self):
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
Expand Down

0 comments on commit dc518c5

Please sign in to comment.