File 0873-ssh-Fix-ssh_basic_SUITE-for-No-host-key-available.patch of Package erlang

From 3c79215e2d9387c1c3dc4b9185f2a2e1209c5610 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Wed, 18 Mar 2020 09:03:41 +0100
Subject: [PATCH 1/2] ssh: Fix ssh_basic_SUITE for "No host key available"

in tc internal_error
---
 lib/ssh/test/ssh_basic_SUITE.erl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/ssh/test/ssh_basic_SUITE.erl b/lib/ssh/test/ssh_basic_SUITE.erl
index aec80f1cbe..ecec805696 100644
--- a/lib/ssh/test/ssh_basic_SUITE.erl
+++ b/lib/ssh/test/ssh_basic_SUITE.erl
@@ -352,6 +352,7 @@ init_per_group(key_cb, Config) ->
 init_per_group(internal_error, Config) ->
     DataDir = proplists:get_value(data_dir, Config),
     PrivDir = proplists:get_value(priv_dir, Config),
+    ssh_test_lib:setup_rsa(DataDir, PrivDir),
     ssh_test_lib:setup_dsa(DataDir, PrivDir),
     file:delete(filename:join(PrivDir, "system/ssh_host_dsa_key")),
     Config;
@@ -425,6 +426,7 @@ end_per_group(key_cb, Config) ->
     Config;
 end_per_group(internal_error, Config) ->
     PrivDir = proplists:get_value(priv_dir, Config),
+    ssh_test_lib:clean_rsa(PrivDir),
     ssh_test_lib:clean_dsa(PrivDir),
     Config;
 
-- 
2.16.4

openSUSE Build Service is sponsored by