Mercurial > evolve
diff tests/test-check-commit.t @ 6853:753e378208b7 stable
tests: use testrepohg in test-check-commit.t
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 13 Oct 2024 17:39:40 +0400 |
parents | ccde78088d0b |
children | 03fe10eb9f2d |
line wrap: on
line diff
--- a/tests/test-check-commit.t Sun Oct 13 17:40:01 2024 +0400 +++ b/tests/test-check-commit.t Sun Oct 13 17:39:40 2024 +0400 @@ -1,5 +1,7 @@ #require test-repo + $ . "$RUNTESTDIR/helpers-testrepo.sh" + Enable obsolescence to avoid the warning issue when obsmarkers are found $ cat << EOF >> $HGRCPATH @@ -13,8 +15,8 @@ $ 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 + $ for node in `testrepohg log --rev 'not public() and ::. and not desc("# no-check-commit")' --template '{node|short}\n'`; do + > testrepohg export $node | ${RUNTESTDIR}/../contrib/check-commit > ${TESTTMP}/check-commit.out > if [ $? -ne 0 ]; then > echo "Revision $node does not comply with rules" > echo '------------------------------------------------------'