chiark / gitweb /
test suite: sbuild-gitish: Insist on using "build" chroot
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 19:34:11 +0000 (20:34 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 19:34:13 +0000 (20:34 +0100)
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 <ijackson@chiark.greenend.org.uk>
tests/tests/sbuild-gitish

index c0ca92765504821fa7cf8547343a0e14bad5a033..7156d0e3dd2cf996bfe137aca77a98e5903c45bb 100755 (executable)
@@ -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; }
        '
 )