summaryrefslogtreecommitdiff
path: root/tests/test-pull-mirror-summary.sh
diff options
context:
space:
mode:
authorDan Nicholson <nicholson@endlessm.com>2019-06-13 16:26:47 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2019-06-19 17:30:24 +0000
commitabb173352da5fa6017746c27fab1eff220c4cfbd (patch)
tree0b972ea0b3c8fd655191cf88d5ad1950199ec8d8 /tests/test-pull-mirror-summary.sh
parent0dd27bbf4b5a3f132a9b2418b391dacbcd64a003 (diff)
downloadostree-abb173352da5fa6017746c27fab1eff220c4cfbd.tar.gz
tests: Always cleanup gpg-agent when exiting
Add `libtest_cleanup_gpg()` to the array of commands to run when exiting. This provides 2 improvements: 1. You don't need to worry about whether the test will spawn a gpg-agent and therefore require adding a call to `libtest_cleanup_gpg()`. 2. All the existing users were calling `libtest_cleanup_gpg()` at the end of the script. If there was a failure and the script exited early, then it wouldn't cleanup and there may be a stray gpg-agent hanging around. Closes: #1799 Approved by: cgwalters
Diffstat (limited to 'tests/test-pull-mirror-summary.sh')
-rwxr-xr-xtests/test-pull-mirror-summary.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test-pull-mirror-summary.sh b/tests/test-pull-mirror-summary.sh
index cc3c6a2c..504cf545 100755
--- a/tests/test-pull-mirror-summary.sh
+++ b/tests/test-pull-mirror-summary.sh
@@ -120,5 +120,3 @@ 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"
-
-libtest_cleanup_gpg