From: Ian Jackson Date: Sun, 7 Jan 2018 16:38:24 +0000 (+0000) Subject: test suite: gnupg: Do not fail if we have no tty when we fail X-Git-Tag: archive/debian/4.2~17 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=89b8afb34a970cb6f31f5725f38c2f51203c6a29 test suite: gnupg: Do not fail if we have no tty when we fail Tolerate failure of the error log reporting arrangement. That way the retry loop is effective even if we don't have a tty. Signed-off-by: Ian Jackson --- diff --git a/tests/tstunt/gpg-locked b/tests/tstunt/gpg-locked index 1b6cc111..f2351b4f 100755 --- a/tests/tstunt/gpg-locked +++ b/tests/tstunt/gpg-locked @@ -40,7 +40,7 @@ else fi exec >/dev/tty printf "%s\n" "$*" - ' x "GNUPG WRAPPER - TROUBLE - $HOME $GNUPGHOME - FAILED $rc $attempt $stdin_tmp_bytes $*" + ' x "GNUPG WRAPPER - TROUBLE - $HOME $GNUPGHOME - FAILED $rc $attempt $stdin_tmp_bytes $*" ||: sleep 10 fi