From: Ian Jackson Date: Thu, 3 Aug 2017 11:14:41 +0000 (+0100) Subject: test suite: Break out t-dgit-manpage X-Git-Tag: archive/debian/4.1~13 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=c85ececfb4a825fe91cf45aa8ffae69863ace473 test suite: Break out t-dgit-manpage No functional change. Signed-off-by: Ian Jackson --- diff --git a/tests/lib b/tests/lib index 0996d3e5..8fd35147 100644 --- a/tests/lib +++ b/tests/lib @@ -419,6 +419,17 @@ t-dgit () { ' } +t-dgit-manpage () { + local section=$1 + local page=$2 + (export LC_ALL=C.UTF-8 + if [ "$DGIT_TEST_INTREE" ]; then + make -C $DGIT_TEST_INTREE $page.$section.view + else + man $section $page + fi) +} + t-diff-nogit () { diff --exclude=.git --exclude=.pc -ruN $* } diff --git a/tests/tests/sbuild-gitish b/tests/tests/sbuild-gitish index 7156d0e3..6e497b2d 100755 --- a/tests/tests/sbuild-gitish +++ b/tests/tests/sbuild-gitish @@ -10,12 +10,7 @@ t-tstunt-parsechangelog t-prep-newpackage example 1.1 buildrune=$( - (export LC_ALL=C.UTF-8 - if [ "$DGIT_TEST_INTREE" ]; then - make -C $DGIT_TEST_INTREE dgit-user.7.view - else - man 7 dgit-user - fi) | \ + t-dgit-manpage 7 dgit-user | \ perl -ne ' next unless m/^ +Using sbuild$/ .. 0; next unless m/^ +\%/ .. 0;