summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2020-06-25 13:21:17 +0300
committerPanu Matilainen <pmatilai@redhat.com>2020-08-31 11:52:07 +0300
commitbf6a9d4483501f7a09a699bad4e82e6543798711 (patch)
treef3d9f9629802e6577fac5a53dce34790e2d4c8fb
parent083c80584b54bd40019da05803e46e8879079825 (diff)
downloadrpm-bf6a9d4483501f7a09a699bad4e82e6543798711.tar.gz
Fix bogus test-suite failure when input is not a tty (#1290)
When running with a non-tty input (such as inside mock), the --addsign test will fail due to GPG_TTY related warning getting emitted since commit 52c0198e245fcac55440ed1e0211d33f84681a7a. Our test-keys do not have passphrases that need to be asked, so just silence the warning by manually setting GPG_TTY to an empty value. Fixes: #1290 (cherry picked from commit 17fb05a365e3cbb225f56ccdd46dd3e68ebbc347)
-rw-r--r--tests/rpmsigdig.at2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/rpmsigdig.at b/tests/rpmsigdig.at
index e5eafa69f..82c311527 100644
--- a/tests/rpmsigdig.at
+++ b/tests/rpmsigdig.at
@@ -415,6 +415,8 @@ AT_SETUP([rpmsign --addsign])
AT_KEYWORDS([rpmsign signature])
RPMDB_INIT
gpg2 --import ${RPMTEST}/data/keys/*.secret
+# Our keys have no passphrases to be asked, silence GPG_TTY warning
+export GPG_TTY=""
# rpmsign --addsign --rpmv3 <unsigned>
AT_CHECK([