aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_basic_SUITE.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2015-12-07 15:06:49 +0100
committerHans Nilsson <[email protected]>2015-12-07 15:06:49 +0100
commitb424835b0d08c9fdf2650782e481e3e7a08eb1ae (patch)
tree4b4e13523b523162cae22b1e1ffc85838acd3ca6 /lib/ssh/test/ssh_basic_SUITE.erl
parent52701a71707e44bef90c7ad8db8dc8a0f9a1feaf (diff)
downloadotp-b424835b0d08c9fdf2650782e481e3e7a08eb1ae.tar.gz
otp-b424835b0d08c9fdf2650782e481e3e7a08eb1ae.tar.bz2
otp-b424835b0d08c9fdf2650782e481e3e7a08eb1ae.zip
ssh: add check for available ipv6 addr in test case
Diffstat (limited to 'lib/ssh/test/ssh_basic_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_basic_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ssh/test/ssh_basic_SUITE.erl b/lib/ssh/test/ssh_basic_SUITE.erl
index 85a6bac972..6c4c215b3d 100644
--- a/lib/ssh/test/ssh_basic_SUITE.erl
+++ b/lib/ssh/test/ssh_basic_SUITE.erl
@@ -311,6 +311,14 @@ init_per_testcase(TC, Config) when TC==shell_no_unicode ;
ct:log("file:native_name_encoding() = ~p,~nio:getopts() = ~p",
[file:native_name_encoding(),io:getopts()]),
wait_for_erlang_first_line([{io,IO}, {shell,Shell}, {sftpd, Sftpd} | Config]);
+
+init_per_testcase(inet6_option, Config) ->
+ case ssh_test_lib:has_inet6_address() of
+ true ->
+ init_per_testcase('__default__', Config);
+ false ->
+ {skip,"No ipv6 interface address"}
+ end;
init_per_testcase(_TestCase, Config) ->
ssh:start(),
Config.