# HG changeset patch # User Javi Merino # Date 1333401955 -3600 # Node ID 8255651362357a4d8b05a5e52f085e75c793e5ed # Parent fb765286f2f99769b2fb40ad0960ffe5f3ddff87 tests: don't run test-gpg if not in a working directory test-gpg has to be run in a mercurial working directory as it uses that to verify that it hasn't modified the trustdb.gpg file. Skip the test if it is running in an exploded tarball. diff -r fb765286f2f9 -r 825565136235 tests/test-gpg.t --- a/tests/test-gpg.t Mon Apr 02 16:46:58 2012 -0500 +++ b/tests/test-gpg.t Mon Apr 02 22:25:55 2012 +0100 @@ -1,6 +1,10 @@ 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=