chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
test suite: stunt gnupg runs gpg again if it exits status 2
[dgit.git]
/
tests
/
tstunt
/
gpg
1
#!/bin/sh
2
set -e
3
4
for attempt in '' exec; do
5
6
set +e
7
$attempt \
8
$DGIT_TEST_REAL_GPG \
9
--agent-program=$DGIT_STUNT_AGENT \
10
"$@"
11
rc=$?
12
set -e
13
14
if [ $rc != 2 ]; then exit $rc; fi
15
16
echo >&2 "WARNING - GNUPG FAILED $rc - STUNT GNUPG $attempt $*"
17
18
done
19
20
exit 127