comparison tests/test-contrib-relnotes.t @ 51961:a9b1acca2b14 stable

relnotes: skip the test if the source repository is not readable The test want to run the relnot extension, with the tested mercurial, on the original repository. This is not always possible (e.g. when running with --pure and the repository use zstd for example). So we skip the test in this case.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 08 Oct 2024 15:54:59 +0200
parents 530d211ae9a8
children
comparison
equal deleted inserted replaced
51960:1c23faf64ad4 51961:a9b1acca2b14
1 #require test-repo py3exe 1 #require test-repo py3exe
2 $ . "$TESTDIR/helpers-testrepo.sh" 2 $ . "$TESTDIR/helpers-testrepo.sh"
3 3
4 $ cd $TESTDIR/.. 4 $ cd $TESTDIR/..
5 $ if hg root 2> /dev/null >&2; then true;
6 > else
7 > echo 'skipped: cannot read the source repository';
8 > exit 80;
9 > fi
10
5 $ python3 contrib/relnotes 4.4 --stoprev 4.5 11 $ python3 contrib/relnotes 4.4 --stoprev 4.5
6 changeset 3398603c5621: unexpected block in release notes directive feature 12 changeset 3398603c5621: unexpected block in release notes directive feature
7 New Features 13 New Features
8 ============ 14 ============
9 15