diff options
| author | Alon Bar-Lev <[email protected]> | 2016-10-19 09:04:07 +0000 | 
|---|---|---|
| committer | Werner Koch <[email protected]> | 2016-11-11 08:09:40 +0000 | 
| commit | 41d8c7e51a8989be633b9ada124c58a01fae7d54 (patch) | |
| tree | 707d3d24748e31a214e0d2ec9d1a9e1a57005374 /tests | |
| parent | core: Use better error code when using select with a too high fd. (diff) | |
| download | gpgme-41d8c7e51a8989be633b9ada124c58a01fae7d54.tar.gz gpgme-41d8c7e51a8989be633b9ada124c58a01fae7d54.zip  | |
tests,python: Atomic directory creation
* lang/python/tests/Makefile.am:  Use MIDIR_P.
* tests/gpg/Makefile.am: Ditto.
* tests/gpgsm/Makefile.am: Ditto.
--
Solves race in parallel build when mkdir fails if directory exists.
Signed-off-by: Alon Bar-Lev <[email protected]>
- Tweaked the ChangeLog
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
| -rw-r--r-- | tests/gpg/Makefile.am | 2 | ||||
| -rw-r--r-- | tests/gpgsm/Makefile.am | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/gpg/Makefile.am b/tests/gpg/Makefile.am index dd33b0a2..c46feb07 100644 --- a/tests/gpg/Makefile.am +++ b/tests/gpg/Makefile.am @@ -93,7 +93,7 @@ export GNUPGHOME := $(abs_builddir)  export GPG_AGENT_INFO :=  ./private-keys-v1.d/gpg-sample.stamp: $(srcdir)/$(private_keys) -	test -d ./private-keys-v1.d || mkdir ./private-keys-v1.d +	$(MKDIR_P) ./private-keys-v1.d  	for k in $(private_keys); do \            cp $(srcdir)/$$k private-keys-v1.d/$$k.key; \          done diff --git a/tests/gpgsm/Makefile.am b/tests/gpgsm/Makefile.am index 41645b6c..46d6a9bc 100644 --- a/tests/gpgsm/Makefile.am +++ b/tests/gpgsm/Makefile.am @@ -70,7 +70,7 @@ export GPG_AGENT_INFO :=  	echo faked-system-time 1008241200 >> ./gpgsm.conf  ./private-keys-v1.d/$(key_id).key: $(srcdir)/$(key_id) -	test -d ./private-keys-v1.d || mkdir ./private-keys-v1.d +	$(MKDIR_P) ./private-keys-v1.d  	cp $(srcdir)/$(key_id) private-keys-v1.d/$(key_id).key  ./trustlist.txt:  | 
