summaryrefslogtreecommitdiff
path: root/qa/qa/runtime
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-03-28 19:48:09 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-03-29 19:40:32 +0800
commit9d9ee76197818486d3cd5a178af4b28ba8b4fc31 (patch)
tree7ea42602c23dc09b320b1d0d1e6a96423cc1ddc2 /qa/qa/runtime
parent4e712f766fb893705816fe199b1225460dd451b2 (diff)
downloadgitlab-ce-9d9ee76197818486d3cd5a178af4b28ba8b4fc31.tar.gz
Use Service::Shellout.shell to spawn a command
Diffstat (limited to 'qa/qa/runtime')
-rw-r--r--qa/qa/runtime/key/base.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/qa/qa/runtime/key/base.rb b/qa/qa/runtime/key/base.rb
index 0f74d314c56..c7e5ebada7b 100644
--- a/qa/qa/runtime/key/base.rb
+++ b/qa/qa/runtime/key/base.rb
@@ -21,12 +21,7 @@ module QA
def ssh_keygen(name, bits, path)
cmd = %W[ssh-keygen -t #{name} -b #{bits} -f #{path} -N] << ''
- IO.popen([*cmd, err: %i[child out]]) do |io|
- out = io.read
- io.close
-
- raise "ssh-keygen failed with output: #{out}" unless $?.success?
- end
+ Service::Shellout.shell(cmd)
end
def populate_key_data(path)