Skip to content

Commit

Permalink
Skip SshTransport tests because of TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
arcimboldo committed Feb 27, 2017
1 parent 41039eb commit 4574a3f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions gc3libs/backends/tests/test_transport.py
Expand Up @@ -153,20 +153,15 @@ def setUp(self):
self.transport.connect()
StubForTestTransport.extraSetup(self)


@pytest.mark.skip("Skipping SSH test: cannot connect to localhost on travis")
class TestSshTransport(StubForTestTransport):

@pytest.fixture(autouse=True)
def setUp(self):
return
self.transport = transport.SshTransport('localhost',
ignore_ssh_host_keys=True)
try:
self.transport.connect()
except TransportError:
pytest.mark.skip(
"Unable to connect to localhost via ssh. Please enable "
"passwordless authentication to localhost in order to pass "
"this test.")
self.transport.connect()
StubForTestTransport.extraSetup(self)

# main: run tests
Expand Down

0 comments on commit 4574a3f

Please sign in to comment.