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:
parent
42d4c2762f
commit
dd5902cc45
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user