gpg: test usability tweaks
This commit is contained in:
parent
b38d811673
commit
380afe2f2d
@ -37,12 +37,21 @@ class Gpg
|
|||||||
Key-Length: 2048
|
Key-Length: 2048
|
||||||
Subkey-Type: RSA
|
Subkey-Type: RSA
|
||||||
Subkey-Length: 2048
|
Subkey-Length: 2048
|
||||||
Passphrase: ''
|
|
||||||
Name-Real: Testing
|
Name-Real: Testing
|
||||||
Name-Email: testing@foo.bar
|
Name-Email: testing@foo.bar
|
||||||
Expire-Date: 1d
|
Expire-Date: 1d
|
||||||
|
%no-protection
|
||||||
%commit
|
%commit
|
||||||
EOS
|
EOS
|
||||||
system GPG_EXECUTABLE, "--batch", "--gen-key", "batch.gpg"
|
system GPG_EXECUTABLE, "--batch", "--gen-key", "batch.gpg"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.cleanup_test_processes!
|
||||||
|
odie "No GPG present to test against!" unless available?
|
||||||
|
gpgconf = Pathname.new(GPG_EXECUTABLE).parent/"gpgconf"
|
||||||
|
|
||||||
|
system gpgconf, "--kill", "gpg-agent"
|
||||||
|
system gpgconf, "--homedir", "keyrings/live", "--kill",
|
||||||
|
"gpg-agent"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user