aboutsummaryrefslogtreecommitdiffstats
path: root/tests/openpgp/default-key.test
diff options
context:
space:
mode:
authorUldis Anšmits <[email protected]>2016-03-02 16:55:56 +0000
committerJustus Winter <[email protected]>2016-03-02 16:59:38 +0000
commit1cdb744d91ab33563fc0b3156fb05694caa55278 (patch)
tree2c5f8d3ffb285d3f1774713ab685a55741c05bd0 /tests/openpgp/default-key.test
parentcommon: Update README. (diff)
downloadgnupg-1cdb744d91ab33563fc0b3156fb05694caa55278.tar.gz
gnupg-1cdb744d91ab33563fc0b3156fb05694caa55278.zip
tests/openpgp: Make tests more portable.
* tests/openpgp/default-key.test: Avoid 'grep -q'. * tests/openpgp/gpgtar.test: Avoid 'grep -qe' and 'diff -q'. * tests/openpgp/use-exact-key.test: Avoid 'grep -q'. GnuPG-bug-id: 2262 Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/openpgp/default-key.test')
-rwxr-xr-xtests/openpgp/default-key.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/openpgp/default-key.test b/tests/openpgp/default-key.test
index bfb84ac18..567f38d82 100755
--- a/tests/openpgp/default-key.test
+++ b/tests/openpgp/default-key.test
@@ -35,7 +35,7 @@ do
info "Trying --default-key $x"
if ! echo | $GPG --default-key "$x" -s | $GPG --verify --status-fd=1 \
- | grep -q 'VALIDSIG 5FBA84ACE02DCB17DA3DFF6BBCA43C441EA97479'
+ | grep 'VALIDSIG 5FBA84ACE02DCB17DA3DFF6BBCA43C441EA97479' >/dev/null
then
echo | $GPG --default-key "$x" -s | $GPG --verify --status-fd=2
error "Unexpected key used for signing (not the signing subkey, specified \"$x\")."
@@ -59,7 +59,7 @@ do
--default-key "$x" --encrypt-to-default-key \
-r 439F02CA -e \
| $GPG --list-packets \
- | grep -q "keyid[ ][A-F0-9]*45117079"
+ | grep "keyid[ ][A-F0-9]*45117079" >/dev/null
then
echo | $GPG --trust-model=always \
--default-key "$x" --encrypt-to-default-key \