mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Skip cmd_unzip test if salt.utils.which('zip') isn't available
This test relies on running archive.cmd_zip in order to have something to test running archive.cmd_unzip against. Some distros will have the unzip binary available, but not the zip binary. We need to protect this test against both so we don't have a false failure on trying to run archive.cmd_zip.
This commit is contained in:
parent
48d2b01e6c
commit
5904cc04c6
@ -189,6 +189,7 @@ class ArchiveTest(integration.ModuleCase):
|
||||
|
||||
self._tear_down()
|
||||
|
||||
@skipIf(not salt.utils.which('zip'), 'Cannot find zip executable')
|
||||
@skipIf(not salt.utils.which('unzip'), 'Cannot find unzip executable')
|
||||
def test_cmd_unzip(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user