tests: oops, I killed gpg-agent again
authorEdouard Tisserant <edouard@pep-project.org>
Fri, 07 Jul 2017 10:05:47 -0400
changeset 19108a1cf9cf1b87
parent 1909 678ea53d9e94
child 1911 db8b70e61f55
tests: oops, I killed gpg-agent again
test/Makefile
     1.1 --- a/test/Makefile	Fri Jul 07 12:46:57 2017 +0200
     1.2 +++ b/test/Makefile	Fri Jul 07 10:05:47 2017 -0400
     1.3 @@ -49,11 +49,19 @@
     1.4  
     1.5  TEST_CMD_PFX = $(LIBPATH)=$(HOME)/lib:../src HOME=$(TEST_HOME)
     1.6  
     1.7 +define killgpg =
     1.8 +	gpgconf --kill gpg-agent
     1.9 +	HOME=$(TEST_HOME) gpgconf --kill gpg-agent
    1.10 +	HOME=$(TEST_HOME_SKEL) gpgconf --kill gpg-agent
    1.11 +endef
    1.12 +
    1.13  test_home_skel:
    1.14 +	$(killgpg)
    1.15  	mkdir -p test_home_skel
    1.16  	-cat 0x*.asc *_sec.asc | gpg2 --import --homedir $(TEST_GNUPGHOME_SKEL)
    1.17  
    1.18  test_home_: test_home_skel
    1.19 +	$(killgpg)
    1.20  	rm -rf test_home
    1.21  	cp -a test_home_skel test_home
    1.22