chiark / gitweb /
test suite: sbuild-gitish: Insist on using "build" chroot
[dgit.git] / 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; }
        '
 )