mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02: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
|
# Note: it doesn't matter whether we specify the primary key or
|
||||||
# a subkey: the newest encryption subkey will be used.
|
# 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 \
|
--default-key "$x" --encrypt-to-default-key \
|
||||||
-r 439F02CA -e \
|
-r 439F02CA -e \
|
||||||
| $GPG --list-packets \
|
| $GPG --list-packets \
|
||||||
| grep "keyid[ ][A-F0-9]*45117079" >/dev/null
|
| grep "keyid[ ][A-F0-9]*45117079" >/dev/null
|
||||||
then
|
then
|
||||||
echo | $GPG --trust-model=always \
|
echo | $GPG ${opt_always} \
|
||||||
--default-key "$x" --encrypt-to-default-key \
|
--default-key "$x" --encrypt-to-default-key \
|
||||||
-r 439F02CA -e \
|
-r 439F02CA -e \
|
||||||
| $GPG --list-packets 1>&2
|
| $GPG --list-packets 1>&2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user