tests: Don't try using keys from a scmartcard.
authorWerner Koch <wk@gnupg.org>
Wed, 19 Sep 2018 15:28:29 +0000 (17:28 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 20 Sep 2018 10:13:03 +0000 (12:13 +0200)
* tests/gpg/Makefile.am: Disable scdaemon
* lang/python/tests/Makefile.am: Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
lang/python/tests/Makefile.am
tests/gpg/Makefile.am

index 6297076..d901285 100644 (file)
@@ -119,3 +119,7 @@ gpg.conf:
 gpg-agent.conf:
 # This is required for gpg2, which does not support command fd.
        echo pinentry-program $(abs_top_srcdir)/tests/gpg/pinentry >$@
+       echo disable-scdaemon >> $@
+
+
+# end-of-file
index 392fc89..ba2d1f3 100644 (file)
@@ -105,5 +105,11 @@ gpg.conf:
        echo no-force-v3-sigs > ./gpg.conf
 
 gpg-agent.conf:
-# This is required for gpg2, which does not support command fd.
+# This is required for gpg2, which does not support command fd for the
+# passphrase.  disable-scdaemon is required so that we don't try using
+# a key from a smartcard reader (error might be: Unusable secret key)
        echo pinentry-program $(abs_srcdir)/pinentry > ./gpg-agent.conf
+       echo disable-scdaemon >> ./gpg-agent.conf
+
+
+# end-of-file