chiark / gitweb /
test suite: gnupg: Do not fail if we have no tty when we fail
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jan 2018 16:38:24 +0000 (16:38 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jan 2018 17:24:48 +0000 (17:24 +0000)
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 <ijackson@chiark.greenend.org.uk>
tests/tstunt/gpg-locked

index 1b6cc11154e2df1dd7e1d2e47734b25e4c9926a6..f2351b4f103ea7f1e73a2fccb1937980b6bcbb52 100755 (executable)
@@ -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