Restore keyring before running E2E tests
This commit is contained in:
parent
b198f0c4f4
commit
8f191cae72
7
Makefile
7
Makefile
|
@ -1,5 +1,5 @@
|
||||||
.POSIX:
|
.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
|
# 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
|
# file. Basically this is just a script that feeds GPG Mailgate with
|
||||||
# known input and checks whether output meets expectations.
|
# 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
|
$(PYTHON) test/e2e_test.py
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -57,6 +57,9 @@ pre-clean:
|
||||||
rm -fv test/gpg-mailgate.conf
|
rm -fv test/gpg-mailgate.conf
|
||||||
rm -f test/logs/*.log
|
rm -f test/logs/*.log
|
||||||
|
|
||||||
|
restore-keyhome:
|
||||||
|
git restore test/keyhome
|
||||||
|
|
||||||
test/tmp:
|
test/tmp:
|
||||||
mkdir test/tmp
|
mkdir test/tmp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue