diff options
author | Hans Nilsson <[email protected]> | 2017-02-08 12:50:32 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-02-08 12:50:32 +0100 |
commit | c6f98b68c6c3a390d7d087184a34448f79450530 (patch) | |
tree | fc1efa0ca8981fe4f1949c7186392ad153cbdbbd /lib/ssh | |
parent | d8f3e9c4760020b25ac279de283361459ae66a8d (diff) | |
download | otp-c6f98b68c6c3a390d7d087184a34448f79450530.tar.gz otp-c6f98b68c6c3a390d7d087184a34448f79450530.tar.bz2 otp-c6f98b68c6c3a390d7d087184a34448f79450530.zip |
ssh: modify ssh_algorithms_SUITE:init_per_suite for some Windows hangning
Diffstat (limited to 'lib/ssh')
-rw-r--r-- | lib/ssh/test/ssh_algorithms_SUITE.erl | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/ssh/test/ssh_algorithms_SUITE.erl b/lib/ssh/test/ssh_algorithms_SUITE.erl index 4327068b7b..313b7fc559 100644 --- a/lib/ssh/test/ssh_algorithms_SUITE.erl +++ b/lib/ssh/test/ssh_algorithms_SUITE.erl @@ -58,9 +58,11 @@ groups() -> || {Tag,Algs} <- ErlAlgos, lists:member(Tag,tags()) ], + + TypeSSH = ssh_test_lib:ssh_type(), AlgoTcSet = - [{Alg, [parallel], specific_test_cases(Tag,Alg,SshcAlgos,SshdAlgos)} + [{Alg, [parallel], specific_test_cases(Tag,Alg,SshcAlgos,SshdAlgos,TypeSSH)} || {Tag,Algs} <- ErlAlgos ++ DoubleAlgos, Alg <- Algs], @@ -313,18 +315,13 @@ concat(A1, A2) -> list_to_atom(lists:concat([A1," + ",A2])). split(Alg) -> ssh_test_lib:to_atoms(string:tokens(atom_to_list(Alg), " + ")). -specific_test_cases(Tag, Alg, SshcAlgos, SshdAlgos) -> +specific_test_cases(Tag, Alg, SshcAlgos, SshdAlgos, TypeSSH) -> [simple_exec, simple_sftp] ++ case supports(Tag, Alg, SshcAlgos) of - true -> - case ssh_test_lib:ssh_type() of - openSSH -> - [sshc_simple_exec_os_cmd]; - _ -> - [] - end; - false -> - [] + true when TypeSSH == openSSH -> + [sshc_simple_exec_os_cmd]; + _ -> + [] end ++ case supports(Tag, Alg, SshdAlgos) of true -> |