From dc518c5340fe537641b0cd2af6aa41ecccf59262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= Date: Thu, 15 Sep 2016 17:14:50 +0100 Subject: [PATCH] Skip test_resize2fs if resize2fs does not exists (#36325) --- tests/unit/modules/blockdev_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/modules/blockdev_test.py b/tests/unit/modules/blockdev_test.py index 182c81c98b5a..b79f6b1be3a3 100644 --- a/tests/unit/modules/blockdev_test.py +++ b/tests/unit/modules/blockdev_test.py @@ -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