mirror of
https://github.com/ostreedev/ostree.git
synced 2025-08-26 17:49:24 +03:00
tests/libtest: Allow specifying GPG homedir to cleanup
In case the tests want to use a custom GPG homedir, allow passing in the homedir to use when cleaning up a running gpg-agent. Closes: #1872 Approved by: cgwalters
This commit is contained in:
committed by
Atomic Bot
parent
d0ec319b6b
commit
d8649f4d56
@ -601,7 +601,8 @@ has_gpgme () {
|
||||
}
|
||||
|
||||
libtest_cleanup_gpg () {
|
||||
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye || true
|
||||
local gpg_homedir=${1:-${test_tmpdir}/gpghome}
|
||||
gpg-connect-agent --homedir "${gpg_homedir}" killagent /bye || true
|
||||
}
|
||||
|
||||
is_bare_user_only_repo () {
|
||||
|
Reference in New Issue
Block a user