Commit a1b76f34 authored by anonym's avatar anonym
Browse files

Use VM.file_overwrite() instead of custom file transfer.

parent 4300c557
......@@ -30,9 +30,7 @@ Given /^I generate an OpenPGP key named "([^"]+)" with password "([^"]+)"$/ do |
Passphrase: #{pwd}
gpg_key_recipie.split("\n").each do |line|
$vm.execute("echo '#{line}' >> /tmp/gpg_key_recipie", :user => LIVE_USER)
$vm.file_overwrite('/tmp/gpg_key_recipie', gpg_key_recipie, LIVE_USER)
c = $vm.execute("gpg --batch --gen-key < /tmp/gpg_key_recipie",
:user => LIVE_USER)
assert(c.success?, "Failed to generate OpenPGP key:\n#{c.stderr}")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment