gpg: create unified test helper
This commit is contained in:
parent
c75a8221a5
commit
6d726e1bd6
@ -54,4 +54,13 @@ class Gpg
|
||||
system gpgconf, "--homedir", "keyrings/live", "--kill",
|
||||
"gpg-agent"
|
||||
end
|
||||
|
||||
def self.test(path)
|
||||
create_test_key(path)
|
||||
begin
|
||||
yield
|
||||
ensure
|
||||
cleanup_test_processes!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user