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.
--- 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)