Mercurial > hg
comparison tests/test-extension.t @ 24257:31e9f66863f3
test: make version based test-extensions failure more explanatory
A buggy __version__ content (usually from setup.py's hg being unable to read the
repo) can make this test fails in an obscure manner. We make the root of the
failure more explicit.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 10 Mar 2015 11:01:10 -0700 |
parents | 042d95beeee8 |
children | 18bae5eb58c5 |
comparison
equal
deleted
inserted
replaced
24256:e964edc3274e | 24257:31e9f66863f3 |
---|---|
944 ** Extensions loaded: throw, older | 944 ** Extensions loaded: throw, older |
945 | 945 |
946 Declare the version as supporting this hg version, show regular bts link: | 946 Declare the version as supporting this hg version, show regular bts link: |
947 $ hgver=`$PYTHON -c 'from mercurial import util; print util.version().split("+")[0]'` | 947 $ hgver=`$PYTHON -c 'from mercurial import util; print util.version().split("+")[0]'` |
948 $ echo 'testedwith = """'"$hgver"'"""' >> throw.py | 948 $ echo 'testedwith = """'"$hgver"'"""' >> throw.py |
949 $ if [ -z "$hgver" ]; then | |
950 > echo "unable to fetch a mercurial version. Make sure __version__ is correct"; | |
951 > fi | |
949 $ rm -f throw.pyc throw.pyo | 952 $ rm -f throw.pyc throw.pyo |
950 $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*' | 953 $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*' |
951 ** unknown exception encountered, please report by visiting | 954 ** unknown exception encountered, please report by visiting |
952 ** http://mercurial.selenic.com/wiki/BugTracker | 955 ** http://mercurial.selenic.com/wiki/BugTracker |
953 ** Python * (glob) | 956 ** Python * (glob) |