# HG changeset patch # User Thomas Arendsen Hein # Date 1333463785 -7200 # Node ID 425f1fbcfb947b698d78169de787010d4e46f8a2 # Parent 8255651362357a4d8b05a5e52f085e75c793e5ed 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. diff -r 825565136235 -r 425f1fbcfb94 tests/test-gpg.t --- 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 <> $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)