Skip test_resize2fs if resize2fs does not exists (#36325)

This commit is contained in:
Pablo Suárez Hernández 2016-09-15 17:14:50 +01:00 committed by Nicole Thomas
parent b9b8e45362
commit dc518c5340

View file

@ -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