From: NIIBE Yutaka Date: Thu, 21 Feb 2019 03:26:09 +0000 (+0900) Subject: tests: Add "disable-scdaemon" in gpg-agent.conf. X-Git-Tag: archive/raspbian/2.2.12-1+rpi1+deb10u2^2~66 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=eec2c900486612d4a3e7ec51517ec8ffdd06f49c;p=gnupg2.git tests: Add "disable-scdaemon" in gpg-agent.conf. * tests/openpgp/defs.scm: Add "disable-scdaemon". Remove "scdaemon-program". * tests/gpgme/gpgme-defs.scm, tests/gpgsm/gpgsm-defs.scm: Likewise. * tests/inittests, tests/pkits/inittests: Add "disable-scdaemon" -- Before this change, running "make check" accesses USB device by scdaemon on host computer. If there is any smartcard/token available, it may affect test results. Because default key choice depends on smartcard/token availability now and existing tests have nothing about testing smartcard/token, disabling scdaemon is good. Signed-off-by: NIIBE Yutaka (cherry picked from commit 64b7c6fd1945bc206cf56979633dfca8a7494374) (cherry picked from commit 150d5452318eafa6aa800ff3b87f8f8eb35ed203) Gbp-Pq: Topic from-2.2.14 Gbp-Pq: Name tests-Add-disable-scdaemon-in-gpg-agent.conf.patch --- diff --git a/tests/gpgme/gpgme-defs.scm b/tests/gpgme/gpgme-defs.scm index 0de589f..bc40b3c 100644 --- a/tests/gpgme/gpgme-defs.scm +++ b/tests/gpgme/gpgme-defs.scm @@ -67,8 +67,7 @@ (create-file "gpg-agent.conf" (string-append "pinentry-program " (tool 'pinentry)) - (string-append "scdaemon-program " (tool 'scdaemon)) - ) + "disable-scdaemon") (start-agent) diff --git a/tests/gpgsm/gpgsm-defs.scm b/tests/gpgsm/gpgsm-defs.scm index f118642..848bc75 100644 --- a/tests/gpgsm/gpgsm-defs.scm +++ b/tests/gpgsm/gpgsm-defs.scm @@ -67,10 +67,7 @@ "faked-system-time 1008241200") (create-file "gpg-agent.conf" (string-append "pinentry-program " (tool 'pinentry)) - (if (assoc "scdaemon" gpg-components) - (string-append "scdaemon-program " (tool 'scdaemon)) - "# No scdaemon available") - ) + "disable-scdaemon") (start-agent) (create-file "trustlist.txt" diff --git a/tests/inittests b/tests/inittests index 6fbccfb..9090674 100755 --- a/tests/inittests +++ b/tests/inittests @@ -85,6 +85,7 @@ EOF cat > gpg-agent.conf < trustlist.txt < gpg-agent.conf <