Restore keyring before running E2E tests

This commit is contained in:
Piotr F. Mieszkowski 2022-06-27 08:53:24 +02:00 committed by Gitea
parent b198f0c4f4
commit 8f191cae72
1 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
.POSIX:
.PHONY: test e2etest unittest crontest pre-clean clean
.PHONY: test e2etest unittest crontest pre-clean clean restore-keyhome
#
# On systems where Python 3.x binary has a different name, just
@ -26,7 +26,7 @@ test: e2etest unittest crontest
# file. Basically this is just a script that feeds GPG Mailgate with
# known input and checks whether output meets expectations.
#
e2etest: test/tmp test/logs pre-clean
e2etest: test/tmp test/logs pre-clean restore-keyhome
$(PYTHON) test/e2e_test.py
#
@ -57,6 +57,9 @@ pre-clean:
rm -fv test/gpg-mailgate.conf
rm -f test/logs/*.log
restore-keyhome:
git restore test/keyhome
test/tmp:
mkdir test/tmp