aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar David Bremner <david@tethera.net>2013-11-27 11:35:46 -0400
committerGravatar David Bremner <david@tethera.net>2013-11-28 07:02:15 -0400
commit456799d514473187758f51c0569b0676575db978 (patch)
tree8c042cbbf85eabfecc89abd6d1a480e754e89445 /test
parent118731254bfb5978c3a006bdd972a516c9127949 (diff)
test/crypto: disable gpg version printing
This was causing test failures because version strings varied in length between GNU/Linux and GNU/KFreeBSD. One can also imagine different versions of gnupg causing the same failure.
Diffstat (limited to 'test')
-rwxr-xr-xtest/crypto9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/crypto b/test/crypto
index aa96ec22..9e5ff4f7 100755
--- a/test/crypto
+++ b/test/crypto
@@ -19,6 +19,7 @@ add_gnupg_home ()
elif (gpg --debug-quick-random --version >/dev/null 2>&1) ; then
echo debug-quick-random >> "$GNUPGHOME"/gpg.conf
fi
+ echo no-emit-version >> "$GNUPGHOME"/gpg.conf
}
##################################################
@@ -62,7 +63,7 @@ expected='[[[{"id": "XXXXX",
"content": "This is a test signed message.\n"},
{"id": 3,
"content-type": "application/pgp-signature",
- "content-length": 315}]}]},
+ "content-length": 280}]}]},
[]]]]'
test_expect_equal_json \
"$output" \
@@ -97,7 +98,7 @@ expected='[[[{"id": "XXXXX",
"content": "This is a test signed message.\n"},
{"id": 3,
"content-type": "application/pgp-signature",
- "content-length": 315}]}]},
+ "content-length": 280}]}]},
[]]]]'
test_expect_equal_json \
"$output" \
@@ -130,7 +131,7 @@ expected='[[[{"id": "XXXXX",
"content": "This is a test signed message.\n"},
{"id": 3,
"content-type": "application/pgp-signature",
- "content-length": 315}]}]},
+ "content-length": 280}]}]},
[]]]]'
test_expect_equal_json \
"$output" \
@@ -354,7 +355,7 @@ expected='[[[{"id": "XXXXX",
"content": "This is a test signed message.\n"},
{"id": 3,
"content-type": "application/pgp-signature",
- "content-length": 315}]}]},
+ "content-length": 280}]}]},
[]]]]'
test_expect_equal_json \
"$output" \