File 0731-ssh-Skip-compatibility-testing-for-OpenSSH-versions-.patch of Package erlang
From d9d4eb2bf24b910ecefd5751ffe85fbe78d38327 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Wed, 20 Oct 2021 16:56:51 +0200
Subject: [PATCH] ssh: Skip compatibility testing for OpenSSH versions that
timeout
It seems to be a problem with the docker system on a certain test
machine that has a zero fault policy.
---
lib/ssh/test/ssh_compat_SUITE.erl | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/lib/ssh/test/ssh_compat_SUITE.erl b/lib/ssh/test/ssh_compat_SUITE.erl
index 44725705e0..262ea0d4ca 100644
--- a/lib/ssh/test/ssh_compat_SUITE.erl
+++ b/lib/ssh/test/ssh_compat_SUITE.erl
@@ -35,7 +35,9 @@
init_per_suite/1,
end_per_suite/1,
init_per_group/2,
- end_per_group/2
+ end_per_group/2,
+ init_per_testcase/2,
+ end_per_testcase/2
]).
-export([
@@ -193,6 +195,26 @@ end_per_group(G, Config) ->
ok
end.
+
+init_per_testcase(TC, Config) when TC==login_otp_is_client ;
+ TC==all_algorithms_sftp_exec_reneg_otp_is_client ->
+ case proplists:get_value(ssh_version, Config) of
+ "openssh4.4p1-openssl0.9.8c" -> {skip, "Not tested"};
+ "openssh4.5p1-openssl0.9.8m" -> {skip, "Not tested"};
+ "openssh5.0p1-openssl0.9.8za" -> {skip, "Not tested"};
+ "openssh6.2p2-openssl0.9.8c" -> {skip, "Not tested"};
+ "openssh6.3p1-openssl0.9.8zh" -> {skip, "Not tested"};
+ "openssh6.6p1-openssl1.0.2n" -> {skip, "Not tested"};
+ _ ->
+ Config
+ end;
+init_per_testcase(_, Config) ->
+ Config.
+
+
+end_per_testcase(_TC, _Config) ->
+ ok.
+
%%--------------------------------------------------------------------
%% Test Cases --------------------------------------------------------
%%--------------------------------------------------------------------
--
2.31.1