Mercurial > evolve
view tests/test-check-commit.t @ 5650:56eb528820d7 stable
tests: require repo in test-check-debian.t
When installed with pip/setup.py, the installation lacks debian/ directory, so
the test was always failing. We could check the existence of the directory
manually, but I think it makes more sense (and is easier) to just require
running this test while having the whole repo. This way we (who can do
something about it) can see if there are debian-related problems, and users
(who can't) don't, regardless of the way they obtained evolve.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 11 Nov 2020 18:56:37 +0800 |
parents | a08bd434a19b |
children | c7abe71d749d |
line wrap: on
line source
#require test-repo Enable obsolescence to avoid the warning issue when obsmarker are found $ cat << EOF >> $HGRCPATH > [diff] > git = yes > [experimental] > evolution=all > EOF Go back in the hg repo $ cd $TESTDIR/.. $ for node in `hg log --rev 'not public() and ::. and not desc("# no-check-commit")' --template '{node|short}\n'`; do > hg export $node | ${RUNTESTDIR}/../contrib/check-commit > ${TESTTMP}/check-commit.out > if [ $? -ne 0 ]; then > echo "Revision $node does not comply with rules" > echo '------------------------------------------------------' > cat ${TESTTMP}/check-commit.out > echo > fi > done