summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2021-08-04 09:05:29 +0200
committerMiklós Fazekas <mfazekas@szemafor.com>2021-08-04 09:05:29 +0200
commit5e7d44c29dec7a499e3378fba3dc19d9dfddccbd (patch)
tree7ad73c5fe37eb660bd9fbd25f6ba1b026501bd02
parent077c4012abc8202e9aaf0b3364d1993a0f7954b0 (diff)
downloadnet-ssh-5e7d44c29dec7a499e3378fba3dc19d9dfddccbd.tar.gz
Create ~/.ssh if needed
-rw-r--r--test/integration/test_proxy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/integration/test_proxy.rb b/test/integration/test_proxy.rb
index 3d46637..89a0ee1 100644
--- a/test/integration/test_proxy.rb
+++ b/test/integration/test_proxy.rb
@@ -3,6 +3,7 @@ require 'net/ssh/buffer'
require 'net/ssh'
require 'timeout'
require 'tempfile'
+require 'fileutils'
require 'net/ssh/proxy/command'
require 'net/ssh/proxy/jump'
@@ -43,6 +44,7 @@ class TestProxy < NetSSHTest
IdentityFile #{@gwkey_id_rsa}
StrictHostKeyChecking no
"
+ FileUtils.mkdir_p File.expand_path("~/.ssh")
my_config = File.expand_path("~/.ssh/config")
File.open(my_config, 'w') { |file| file.write(config) }
begin