summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-03-31 08:27:32 +0100
committerColin Walters (automation) <walters+githubbot@verbum.org>2016-03-31 14:22:06 +0000
commitb25ddd29ab8eb56bc1022dd38758e54dc4b2ccbe (patch)
treef403952e0ce4cfc0853a232b5b0a6ea3b55da437 /tests
parent47fd5c74f1428d4cc02ff0061a4958c4b714e852 (diff)
downloadostree-b25ddd29ab8eb56bc1022dd38758e54dc4b2ccbe.tar.gz
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
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test-commit-sign.sh1
-rwxr-xr-xtests/test-gpg-signed-commit.sh2
-rwxr-xr-xtests/test-pull-mirror-summary.sh2
-rwxr-xr-xtests/test-pull-summary-sigs.sh2
-rwxr-xr-xtests/test-remote-gpg-import.sh1
5 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-commit-sign.sh b/tests/test-commit-sign.sh
index 8d52bcaf..1b153e9a 100755
--- a/tests/test-commit-sign.sh
+++ b/tests/test-commit-sign.sh
@@ -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"
diff --git a/tests/test-gpg-signed-commit.sh b/tests/test-gpg-signed-commit.sh
index a0bf9832..096c0e1c 100755
--- a/tests/test-gpg-signed-commit.sh
+++ b/tests/test-gpg-signed-commit.sh
@@ -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"
diff --git a/tests/test-pull-mirror-summary.sh b/tests/test-pull-mirror-summary.sh
index 20707a13..d5e27fc8 100755
--- a/tests/test-pull-mirror-summary.sh
+++ b/tests/test-pull-mirror-summary.sh
@@ -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
diff --git a/tests/test-pull-summary-sigs.sh b/tests/test-pull-summary-sigs.sh
index 202efdae..dd2fcb0f 100755
--- a/tests/test-pull-summary-sigs.sh
+++ b/tests/test-pull-summary-sigs.sh
@@ -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
diff --git a/tests/test-remote-gpg-import.sh b/tests/test-remote-gpg-import.sh
index bb0c4029..aa90eb89 100755
--- a/tests/test-remote-gpg-import.sh
+++ b/tests/test-remote-gpg-import.sh
@@ -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"