comparison tests/test-gpg.t @ 29791:28591876fa63

test-gpg: run migration of v1 secret keys beforehand This suppresses unwanted output at "hg sign".
author Yuya Nishihara <yuya@tcha.org>
date Sun, 14 Aug 2016 17:07:05 +0900
parents 94fb0458a791
children 80ba176bad62
comparison
equal deleted inserted replaced
29790:94fb0458a791 29791:28591876fa63
10 > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb 10 > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb
11 > EOF 11 > EOF
12 $ GNUPGHOME="$TESTTMP/gpg"; export GNUPGHOME 12 $ GNUPGHOME="$TESTTMP/gpg"; export GNUPGHOME
13 $ cp -R "$TESTDIR/gpg" "$GNUPGHOME" 13 $ cp -R "$TESTDIR/gpg" "$GNUPGHOME"
14 14
15 Start gpg-agent, which is required by GnuPG v2 15 Start gpg-agent, which is required by GnuPG v2, and migrate secret keys
16 16
17 #if gpg2 17 #if gpg2
18 $ gpg-connect-agent -q --subst /serverpid '/echo ${get serverpid}' /bye \ 18 $ gpg-connect-agent -q --subst /serverpid '/echo ${get serverpid}' /bye \
19 > >> $DAEMON_PIDS 19 > >> $DAEMON_PIDS
20 $ gpg --no-permission-warning --no-secmem-warning --list-secret-keys \
21 > > /dev/null 2>&1
20 #endif 22 #endif
21 23
22 $ hg init r 24 $ hg init r
23 $ cd r 25 $ cd r
24 $ echo foo > foo 26 $ echo foo > foo