Mercurial > hg-stable
changeset 16345:825565136235 stable
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.
author | Javi Merino <cibervicho@gmail.com> |
---|---|
date | Mon, 02 Apr 2012 22:25:55 +0100 |
parents | fb765286f2f9 |
children | 21b31e9c20f3 425f1fbcfb94 a1b6a63f9f39 |
files | tests/test-gpg.t |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <<EOF >> $HGRCPATH > [extensions] > gpg=