File 0125-ssh-Parallelize-ssh_renegotiate_SUITE.patch of Package erlang

From b5b4a5141837befc6735e62921c7084c20d4edaa Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Fri, 16 Mar 2018 17:21:03 +0100
Subject: [PATCH 2/4] ssh: Parallelize ssh_renegotiate_SUITE

---
 lib/ssh/test/ssh_renegotiate_SUITE.erl | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/lib/ssh/test/ssh_renegotiate_SUITE.erl b/lib/ssh/test/ssh_renegotiate_SUITE.erl
index 74bbc291b2..0e7e1218ab 100644
--- a/lib/ssh/test/ssh_renegotiate_SUITE.erl
+++ b/lib/ssh/test/ssh_renegotiate_SUITE.erl
@@ -38,15 +38,19 @@ all() -> [{group,default_algs},
 	  {group,aes_gcm}
 	 ].
 
-groups() -> [{default_algs, [], tests()},
-	     {aes_gcm,      [], tests()}
+groups() -> [{default_algs, [parallel], tests()},
+	     {aes_gcm,      [parallel], tests()}
 	    ].
 
 tests() -> [rekey, rekey_limit, renegotiate1, renegotiate2].
 
 %%--------------------------------------------------------------------
 init_per_suite(Config) ->
-    ?CHECK_CRYPTO(Config).
+    ?CHECK_CRYPTO(begin
+                      ssh:start(),
+                      Config
+                  end
+                 ).
 
 end_per_suite(_Config) ->
     ssh:stop().
@@ -71,11 +75,9 @@ end_per_group(_, Config) ->
 
 %%--------------------------------------------------------------------
 init_per_testcase(_TestCase, Config) ->
-    ssh:start(),
     Config.
 
 end_per_testcase(_TestCase, _Config) ->
-    ssh:stop(),
     ok.
 
 %%--------------------------------------------------------------------
-- 
2.16.3