mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #46421 from bdrung/skip-ssh-tests-if-ssh-is-missing
Skip SSHPasswordTests if ssh binary is not found
This commit is contained in:
commit
9c089aa4de
1 changed files with 2 additions and 0 deletions
|
@ -14,10 +14,12 @@ from tests.support.mock import NO_MOCK, NO_MOCK_REASON, patch, MagicMock
|
|||
|
||||
# Import Salt libs
|
||||
import salt.config
|
||||
import salt.utils.path
|
||||
from salt.client import ssh
|
||||
|
||||
|
||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
||||
@skipIf(not salt.utils.path.which('ssh'), "No ssh binary found in path")
|
||||
class SSHPasswordTests(ShellCase):
|
||||
def test_password_failure(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue