diff options
author | Neal H. Walfield <neal@pep.foundation> | 2022-05-13 12:30:01 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2022-08-30 09:48:57 +0300 |
commit | e6411e941895c1b759ec29637bc28ee855085c97 (patch) | |
tree | 54c3691b32cd0358b5bf023f9a537339ac3646aa | |
parent | 6a91d392b99498fc54e9f292399c4e2e6beefe87 (diff) | |
download | rpm-e6411e941895c1b759ec29637bc28ee855085c97.tar.gz |
Change tests that import partially valid keys to use --quiet
When `rpmkey --import` is given a partially valid key, it may emit
warnings, which are backend dependent. This is currently the case
with the Sequoia, but not the internal OpenPGP parser.
The lints make the tests more fragile. Moreover, the tests aren't
checking the warnings, but other behavior. Suppress the warnings by
passing `--quiet` to `rpmkeys`.
Fixes #2071.
(backport of f439f246b5c8ac016753f80a4c305245d376ebd7)
-rw-r--r-- | tests/rpmsigdig.at | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rpmsigdig.at b/tests/rpmsigdig.at index 02ecf560c..6906c6fa4 100644 --- a/tests/rpmsigdig.at +++ b/tests/rpmsigdig.at @@ -321,7 +321,7 @@ RPMDB_INIT # The internal OpenPGP implementation checks for validity when the key # is imported; other implementations should not do this. AT_CHECK_UNQUOTED([ -runroot rpmkeys --import /data/keys/CVE-2021-3521-badbind.asc +runroot rpmkeys --quiet --import /data/keys/CVE-2021-3521-badbind.asc echo exit code: $? >&2 ], [ignore], @@ -336,7 +336,7 @@ fi`] ) AT_CHECK_UNQUOTED([ -runroot rpmkeys --import /data/keys/CVE-2021-3521-nosubsig.asc +runroot rpmkeys --quiet --import /data/keys/CVE-2021-3521-nosubsig.asc echo exit code: $? >&2 ], [ignore], @@ -351,7 +351,7 @@ fi`] ) AT_CHECK_UNQUOTED([ -runroot rpmkeys --import /data/keys/CVE-2021-3521-nosubsig-last.asc +runroot rpmkeys --quiet --import /data/keys/CVE-2021-3521-nosubsig-last.asc echo exit code: $? >&2 ], [ignore], |