mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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.
This commit is contained in:
parent
2be8f7711a
commit
c4e6d14c1e
@ -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=
|
||||
|
Loading…
Reference in New Issue
Block a user