changeset 16349:425f1fbcfb94 stable

test-gpg: replace 825565136235 by md5sum check The call to 'hg identify' would have needed '--cwd "$TESTDIR' to make it work anyway, but by using a checksum this test can work outside a repository.
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 03 Apr 2012 16:36:25 +0200
parents 825565136235
children 4f795f5fbb0b
files tests/test-gpg.t
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-gpg.t	Mon Apr 02 22:25:55 2012 +0100
+++ b/tests/test-gpg.t	Tue Apr 03 16:36:25 2012 +0200
@@ -1,10 +1,6 @@
 Test the GPG extension
 
   $ "$TESTDIR/hghave" gpg || exit 80
-  $ if ! hg identify -q > /dev/null; then
-  >     echo "skipped: not a Mercurial working dir" >&2
-  >     exit 80
-  > fi
   $ cat <<EOF >> $HGRCPATH
   > [extensions]
   > gpg=
@@ -32,4 +28,5 @@
 
 verify that this test has not modified the trustdb.gpg file back in
 the main hg working dir
-  $ hg --cwd $TESTDIR status gpg
+  $ "$TESTDIR/md5sum.py" "$TESTDIR/gpg/trustdb.gpg"
+  f6b9c78c65fa9536e7512bb2ceb338ae  */gpg/trustdb.gpg (glob)