File 0904-ssh-test-Don-t-propagate-Config-between-test-suites.patch of Package erlang
From a092729ce0b3b794823c105276caec27fcb59a19 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Wed, 13 Nov 2019 15:22:05 +0100
Subject: [PATCH 2/6] ssh/test: Don't propagate Config between test suites
---
lib/ssh/test/ssh_compat_SUITE.erl | 4 ++--
lib/ssh/test/ssh_connection_SUITE.erl | 4 ++--
lib/ssh/test/ssh_property_test_SUITE.erl | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/ssh/test/ssh_compat_SUITE.erl b/lib/ssh/test/ssh_compat_SUITE.erl
index c42140cee7..93593c82b5 100644
--- a/lib/ssh/test/ssh_compat_SUITE.erl
+++ b/lib/ssh/test/ssh_compat_SUITE.erl
@@ -86,13 +86,13 @@ init_per_suite(Config) ->
Config
end).
-end_per_suite(Config) ->
+end_per_suite(_Config) ->
%% Remove all containers that are not running:
%%% os:cmd("docker rm $(docker ps -aq -f status=exited)"),
%% Remove dangling images:
%%% os:cmd("docker rmi $(docker images -f dangling=true -q)"),
catch ssh:stop(),
- Config.
+ ok.
init_per_group(otp_server, Config) ->
diff --git a/lib/ssh/test/ssh_connection_SUITE.erl b/lib/ssh/test/ssh_connection_SUITE.erl
index dfc513fc12..c187a5e4b5 100644
--- a/lib/ssh/test/ssh_connection_SUITE.erl
+++ b/lib/ssh/test/ssh_connection_SUITE.erl
@@ -97,9 +97,9 @@ sock() ->
init_per_suite(Config) ->
?CHECK_CRYPTO(Config).
-end_per_suite(Config) ->
+end_per_suite(_Config) ->
catch ssh:stop(),
- Config.
+ ok.
%%--------------------------------------------------------------------
init_per_group(openssh, Config) ->
diff --git a/lib/ssh/test/ssh_property_test_SUITE.erl b/lib/ssh/test/ssh_property_test_SUITE.erl
index 9aaac898a0..4da0b7b44c 100644
--- a/lib/ssh/test/ssh_property_test_SUITE.erl
+++ b/lib/ssh/test/ssh_property_test_SUITE.erl
@@ -56,8 +56,8 @@ groups() ->
init_per_suite(Config) ->
ct_property_test:init_per_suite(Config).
-end_per_suite(Config) ->
- Config.
+end_per_suite(_Config) ->
+ ok.
%%% One group in this suite happens to support only QuickCheck, so skip it
%%% if we run proper.
--
2.16.4