Skip to content

Commit

Permalink
skip tests if ssh is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch3LL authored and dwoz committed Dec 1, 2020
1 parent e4773d7 commit d36c713
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/client/ssh/test_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
import subprocess

import salt.client.ssh.shell as shell
from tests.support.helpers import skip_if_binaries_missing
from tests.support.runtests import RUNTIME_VARS
from tests.support.unit import TestCase


@skip_if_binaries_missing("ssh")
class SSHShellTests(TestCase):
def setUp(self):
self.pub_key = os.path.join(RUNTIME_VARS.TMP, "ssh", "testkey.pub")
Expand Down

0 comments on commit d36c713

Please sign in to comment.