tests: Make sure not to create files outside the build directory.
authorWerner Koch <wk@gnupg.org>
Mon, 19 Aug 2013 09:35:06 +0000 (11:35 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 19 Aug 2013 09:35:06 +0000 (11:35 +0200)
* tests/openpgp/Makefile.am (./gpg_dearmor): Add option --homedir.

--

The dearmor code might create files in the source directory during a
test run.  Adding "--homedir ." should solve this.

GnuPG-bug-id: 1498.
Signed-off-by: Werner Koch <wk@gnupg.org>
tests/openpgp/Makefile.am

index 837298d..bd57e25 100644 (file)
@@ -79,7 +79,7 @@ prepared.stamp: ./pubring.gpg ./secring.gpg ./plain-1 ./plain-2 ./plain-3 \
 # start before all programs are built.
 ./gpg_dearmor: $(required_pgms)
        echo '#!/bin/sh' >./gpg_dearmor
-       echo "../../g10/gpg2 --no-options --no-greeting \
+       echo "../../g10/gpg2 --homedir . --no-options --no-greeting \
              --no-secmem-warning --batch --dearmor" >>./gpg_dearmor
        chmod 755 ./gpg_dearmor