tests/test-gpg.t
changeset 29789 66e038fb3c0d
parent 25472 4d2b9b304ad0
child 29790 94fb0458a791
--- a/tests/test-gpg.t	Mon Aug 15 20:39:33 2016 -0700
+++ b/tests/test-gpg.t	Sun Aug 14 16:49:47 2016 +0900
@@ -7,8 +7,11 @@
   > gpg=
   > 
   > [gpg]
-  > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb --homedir "$TESTDIR/gpg"
+  > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb
   > EOF
+  $ GNUPGHOME="$TESTTMP/gpg"; export GNUPGHOME
+  $ cp -R "$TESTDIR/gpg" "$GNUPGHOME"
+
   $ hg init r
   $ cd r
   $ echo foo > foo
@@ -36,12 +39,4 @@
   e63c23eaa88a is signed by:
    hgtest
 
-verify that this test has not modified the trustdb.gpg file back in
-the main hg working dir
-  $ md5sum.py "$TESTDIR/gpg/trustdb.gpg"
-  f6b9c78c65fa9536e7512bb2ceb338ae  */gpg/trustdb.gpg (glob)
-
-don't leak any state to next test run
-  $ rm -f "$TESTDIR/gpg/random_seed"
-
   $ cd ..