1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-03-28 22:49:59 +01:00

tests: Fix default key test.

* tests/openpgp/default-key.test: Avoid using the option
'--trust-model' unconditionally.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-04-04 13:10:28 +02:00
parent 42d4c2762f
commit dd5902cc45

View File

@ -55,13 +55,13 @@ do
#
# Note: it doesn't matter whether we specify the primary key or
# a subkey: the newest encryption subkey will be used.
if ! echo | $GPG --trust-model=always \
if ! echo | $GPG ${opt_always} \
--default-key "$x" --encrypt-to-default-key \
-r 439F02CA -e \
| $GPG --list-packets \
| grep "keyid[ ][A-F0-9]*45117079" >/dev/null
then
echo | $GPG --trust-model=always \
echo | $GPG ${opt_always} \
--default-key "$x" --encrypt-to-default-key \
-r 439F02CA -e \
| $GPG --list-packets 1>&2