summaryrefslogtreecommitdiff
path: root/tests/tstunt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tstunt')
-rwxr-xr-xtests/tstunt/gpg12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tstunt/gpg b/tests/tstunt/gpg
index 790c46c..a108267 100755
--- a/tests/tstunt/gpg
+++ b/tests/tstunt/gpg
@@ -15,6 +15,18 @@ if [ $rc != 2 ]; then exit $rc; fi
echo >&2 "WARNING - GNUPG FAILED $rc - STUNT GNUPG $attempt $*"
+sh -ec '
+ if [ "x$DGIT_GNUPG_STUNT_ERRLOG" != x ]; then
+ exec >"$DGIT_GNUPG_STUNT_ERRLOG"
+ else
+ exec 2>/dev/null
+ fi
+ exec >/dev/tty
+ printf "%s\n" "$*"
+' x "GNUPG WRAPPER - TROUBLE - $HOME $GNUPGHOME - FAILED $rc $attempt $*"
+
+sleep 10
+
done
exit 127