In tests that use gpg, terminate the gpg-agent after testing

Otherwise we leak those processes.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #232
Approved by: cgwalters
This commit is contained in:
Simon McVittie 2016-03-31 08:27:32 +01:00 committed by Colin Walters (automation)
parent 47fd5c74f1
commit b25ddd29ab
5 changed files with 8 additions and 0 deletions

View File

@ -132,5 +132,6 @@ if ${CMD_PREFIX} ostree --repo=repo show main | grep -o 'Found [[:digit:]] signa
fi
rm -rf repo gnomerepo-files
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye
echo "ok"

View File

@ -78,4 +78,6 @@ if ${OSTREE} show test2 | grep -o 'Found [[:digit:]] signature'; then
assert_not_reached
fi
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye
echo "ok"

View File

@ -121,3 +121,5 @@ echo "ok pull mirror with invalid summary sig and no verification"
# assert_file_has_content deltas.txt "${origmain}-${newmain}"
# echo "ok pull mirror with signed summary covering static deltas"
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye

View File

@ -133,3 +133,5 @@ assert_file_has_content summary.txt "Good signature from \"Ostree Tester <test@t
grep static-deltas summary.txt > static-deltas.txt
assert_file_has_content static-deltas.txt \
$(${OSTREE} --repo=repo rev-parse origin:main)
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye

View File

@ -143,4 +143,5 @@ if ${OSTREE} pull R2:main >/dev/null 2>&1; then
fi
${OSTREE} pull R3:main >/dev/null
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye
echo "ok"