Skip to content

Commit

Permalink
test_btrfs: skip test_subvolume_create on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aplanas committed Dec 3, 2019
1 parent 107218a commit 0a2efa8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/modules/test_btrfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# Import Salt Libs
import salt.utils.files
import salt.utils.fsutils
import salt.utils.platform
import salt.modules.btrfs as btrfs
from salt.exceptions import CommandExecutionError

Expand Down Expand Up @@ -401,6 +402,7 @@ def test_subvolume_create_already_exists(self, subvolume_exists):
subvolume_exists.return_value = True
assert not btrfs.subvolume_create('var', dest='/mnt')

@skipIf(salt.utils.platform.is_windows(), 'Skip on Windows')
@patch('salt.modules.btrfs.subvolume_exists')
def test_subvolume_create(self, subvolume_exists):
'''
Expand Down

0 comments on commit 0a2efa8

Please sign in to comment.