Skip to content

Commit

Permalink
Merge pull request #46421 from bdrung/skip-ssh-tests-if-ssh-is-missing
Browse files Browse the repository at this point in the history
Skip SSHPasswordTests if ssh binary is not found
  • Loading branch information
Nicole Thomas authored Mar 9, 2018
2 parents 4cbfde5 + 3d6f658 commit 9c089aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/ssh/test_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@

# 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):
'''
Expand Down

0 comments on commit 9c089aa

Please sign in to comment.