diff options
author | Ingela Anderton Andin <[email protected]> | 2011-12-15 15:46:27 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2012-01-11 15:04:55 +0100 |
commit | 76738dd0284a823d9c07149180dfc97097df145f (patch) | |
tree | fcbed360a362574342903447d726cd4fdb43c1a5 /lib/ssh | |
parent | bb312f5fb5748fef90f57ccb387f1c32a729f086 (diff) | |
download | otp-76738dd0284a823d9c07149180dfc97097df145f.tar.gz otp-76738dd0284a823d9c07149180dfc97097df145f.tar.bz2 otp-76738dd0284a823d9c07149180dfc97097df145f.zip |
Do not run ssh_to_openssh_SUITE if there is no oppenssh server running
Diffstat (limited to 'lib/ssh')
-rw-r--r-- | lib/ssh/test/ssh_to_openssh_SUITE.erl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl index f959d50484..dc3ea4c1de 100644 --- a/lib/ssh/test/ssh_to_openssh_SUITE.erl +++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl @@ -42,8 +42,13 @@ init_per_suite(Config) -> case catch crypto:start() of ok -> - ssh_test_lib:make_dsa_files(Config), - Config; + case gen_tcp:connect("localhost", 22, []) of + {error,econnrefused} -> + {skip,"No openssh deamon"}; + _ -> + ssh_test_lib:make_dsa_files(Config), + Config + end; _Else -> {skip,"Could not start crypto!"} end. |