From: Ian Jackson Date: Thu, 3 Aug 2017 19:34:11 +0000 (+0100) Subject: test suite: sbuild-gitish: Insist on using "build" chroot X-Git-Tag: archive/debian/4.1~27 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5858d3561071f6c1dcff62f9ee101215d5bb7187;p=dgit.git test suite: sbuild-gitish: Insist on using "build" chroot In "test suite: sbuild-gitish: Find sbuild rune in the manpage" aka f5c0d33ede8a we accidentally switched from "build" to "jessie". Randomly messing about with the user's "jessie" chroot is not very nice. (And it would break in a hypothetical formal test providing the x-dgit-schroot-build capability.) Signed-off-by: Ian Jackson --- diff --git a/tests/tests/sbuild-gitish b/tests/tests/sbuild-gitish index c0ca9276..7156d0e3 100755 --- a/tests/tests/sbuild-gitish +++ b/tests/tests/sbuild-gitish @@ -21,7 +21,9 @@ buildrune=$( next unless m/^ +\%/ .. 0; next if !m/\S/ .. 0; s/^ +\%//; + $fixchr += s/(\s-c\s*)jessie(\s|$)/$1build$2/; print or die $!; + END { $fixchr == 1 or die $fixchr; } ' )