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:
parent
47fd5c74f1
commit
b25ddd29ab
|
|
@ -132,5 +132,6 @@ if ${CMD_PREFIX} ostree --repo=repo show main | grep -o 'Found [[:digit:]] signa
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf repo gnomerepo-files
|
rm -rf repo gnomerepo-files
|
||||||
|
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye
|
||||||
|
|
||||||
echo "ok"
|
echo "ok"
|
||||||
|
|
|
||||||
|
|
@ -78,4 +78,6 @@ if ${OSTREE} show test2 | grep -o 'Found [[:digit:]] signature'; then
|
||||||
assert_not_reached
|
assert_not_reached
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye
|
||||||
|
|
||||||
echo "ok"
|
echo "ok"
|
||||||
|
|
|
||||||
|
|
@ -121,3 +121,5 @@ echo "ok pull mirror with invalid summary sig and no verification"
|
||||||
# assert_file_has_content deltas.txt "${origmain}-${newmain}"
|
# assert_file_has_content deltas.txt "${origmain}-${newmain}"
|
||||||
|
|
||||||
# echo "ok pull mirror with signed summary covering static deltas"
|
# echo "ok pull mirror with signed summary covering static deltas"
|
||||||
|
|
||||||
|
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye
|
||||||
|
|
|
||||||
|
|
@ -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
|
grep static-deltas summary.txt > static-deltas.txt
|
||||||
assert_file_has_content static-deltas.txt \
|
assert_file_has_content static-deltas.txt \
|
||||||
$(${OSTREE} --repo=repo rev-parse origin:main)
|
$(${OSTREE} --repo=repo rev-parse origin:main)
|
||||||
|
|
||||||
|
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye
|
||||||
|
|
|
||||||
|
|
@ -143,4 +143,5 @@ if ${OSTREE} pull R2:main >/dev/null 2>&1; then
|
||||||
fi
|
fi
|
||||||
${OSTREE} pull R3:main >/dev/null
|
${OSTREE} pull R3:main >/dev/null
|
||||||
|
|
||||||
|
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye
|
||||||
echo "ok"
|
echo "ok"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue