m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormilki <milki@rescomp.berkeley.edu>2014-05-14 00:15:17 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-05-14 00:15:17 +0200
commite4e0bdfa73fbdb21e93e69c3ad9d66414681201c (patch)
treef1fd7155355bfec8bfe94bc54799d618fb93924f /tests
parent311c98c9140205f32be2720db9261c67da658c4c (diff)
Disable secmem warning when discovering keys
Key discovery parses stderr output of gnupg. The secmem warning interferes with parsing.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/t0300-reencryption.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0300-reencryption.sh b/tests/t0300-reencryption.sh
index b595511..96da41b 100755
--- a/tests/t0300-reencryption.sh
+++ b/tests/t0300-reencryption.sh
@@ -10,7 +10,7 @@ canonicalize_gpg_keys() {
$GPG --list-keys --keyid-format long "$@" | sed -n 's/sub *.*\/\([A-F0-9]\{16\}\) .*/\1/p' | sort -u
}
gpg_keys_from_encrypted_file() {
- $GPG -v --list-only --keyid-format long "$1" 2>&1 | cut -d ' ' -f 5 | sort -u
+ $GPG -v --no-secmem-warning --no-permission-warning --list-only --keyid-format long "$1" 2>&1 | cut -d ' ' -f 5 | sort -u
}
gpg_keys_from_group() {
local output="$($GPG --list-config --with-colons | sed -n "s/^cfg:group:$1:\\(.*\\)/\\1/p" | head -n 1)"