From 7098c14b231113055535abb14b4cde0c845f8728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Wed, 8 Feb 2023 14:59:28 +0100 Subject: tests: Stop daemons after setting up test environment * lang/python/tests/Makefile.am, lang/qt/tests/Makefile.am, tests/gpg/Makefile.am, tests/json/Makefile.am (pubring-stamp): Call `gpgconf --kill all` after importing test keys. -- This ensures that no gpg-agents or other daemons are running after "make". --- lang/python/tests/Makefile.am | 1 + lang/qt/tests/Makefile.am | 1 + tests/gpg/Makefile.am | 1 + tests/json/Makefile.am | 1 + 4 files changed, 4 insertions(+) diff --git a/lang/python/tests/Makefile.am b/lang/python/tests/Makefile.am index 62dddaae..40a26e2a 100644 --- a/lang/python/tests/Makefile.am +++ b/lang/python/tests/Makefile.am @@ -107,6 +107,7 @@ pubring-stamp: $(test_srcdir)/pubdemo.asc gpg-sample.stamp --import $(test_srcdir)/pubdemo.asc -$(TESTS_ENVIRONMENT) $(GPG) --batch --no-permission-warning \ --import $(test_srcdir)/secdemo.asc + -$(TESTS_ENVIRONMENT) gpgconf --kill all echo x > ./pubring-stamp gpg.conf: diff --git a/lang/qt/tests/Makefile.am b/lang/qt/tests/Makefile.am index 601d5062..d9713d90 100644 --- a/lang/qt/tests/Makefile.am +++ b/lang/qt/tests/Makefile.am @@ -136,6 +136,7 @@ pubring-stamp: $(top_srcdir)/tests/gpg/pubdemo.asc \ $(TESTS_ENVIRONMENT) $(GPG) --no-permission-warning \ --passphrase "abc" \ --import $(top_srcdir)/tests/gpg/secdemo.asc + -$(TESTS_ENVIRONMENT) gpgconf --kill all touch pubring-stamp .cpp.moc: diff --git a/tests/gpg/Makefile.am b/tests/gpg/Makefile.am index c4a4ce42..6a82ca68 100644 --- a/tests/gpg/Makefile.am +++ b/tests/gpg/Makefile.am @@ -110,6 +110,7 @@ pubring-stamp: $(srcdir)/pubdemo.asc gpg-sample.stamp --import $(srcdir)/secdemo.asc -$(TESTS_ENVIRONMENT) $(GPG) --batch --no-permission-warning \ --import-ownertrust $(srcdir)/ownertrust.txt + -$(TESTS_ENVIRONMENT) gpgconf --kill all echo x > ./pubring-stamp gpg.conf: $(srcdir)/gpg.conf.in diff --git a/tests/json/Makefile.am b/tests/json/Makefile.am index 9b2cf71c..90fba79e 100644 --- a/tests/json/Makefile.am +++ b/tests/json/Makefile.am @@ -93,6 +93,7 @@ pubring-stamp: $(top_srcdir)/tests/gpg/pubdemo.asc gpg-sample.stamp --import $(top_srcdir)/tests/gpg/pubdemo.asc -$(TESTS_ENVIRONMENT) $(GPG) --batch --no-permission-warning \ --import $(top_srcdir)/tests/gpg/secdemo.asc + -$(TESTS_ENVIRONMENT) gpgconf --kill all echo x > ./pubring-stamp gpg.conf: -- cgit v1.2.1