re-started gpg-agent killings - it doesn't hurt
authorEdouard Tisserant <edouard@pep-project.org>
Thu, 20 Jul 2017 15:09:34 +0200
changeset 19321bbe9e6435b7
parent 1931 3a52d0092cdc
child 1933 fcbc14dba67d
child 1934 c59a9b6e9f40
re-started gpg-agent killings - it doesn't hurt
test/Makefile
     1.1 --- a/test/Makefile	Thu Jul 20 14:05:14 2017 +0200
     1.2 +++ b/test/Makefile	Thu Jul 20 15:09:34 2017 +0200
     1.3 @@ -55,12 +55,26 @@
     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 +ifeq ("$(OPENPGP)","NETPGP")
    1.13 +    killgpg_if_using_it =
    1.14 +else
    1.15 +    killgpg_if_using_it = $(killgpg)
    1.16 +endif
    1.17 +
    1.18  test_home_skel:
    1.19 +	$(killgpg)
    1.20  	mkdir -p test_home_skel
    1.21  	mkdir -p $(TEST_GNUPGHOME_SKEL)/private-keys-v1.d
    1.22  	$(GPG_CMD) --import --batch --homedir $(TEST_GNUPGHOME_SKEL) 0x*.asc *_sec.asc
    1.23 +	$(killgpg)
    1.24  
    1.25  test_home_: test_home_skel
    1.26 +	$(killgpg_if_using_it)
    1.27  	rm -rf test_home
    1.28  	cp -a test_home_skel test_home
    1.29