chiark / gitweb /
test suite: Honour DGIT_SCHROOT_CHROOT to set the schroot to use for the sbuild tests.
[dgit.git] / tests / tests / sbuild-gitish
index 6e497b2d47e3ade1218e8bbe65f1cd69d9c92916..da90b6f4967c29f8bbd3e02794b0472925d1f8de 100755 (executable)
@@ -16,7 +16,7 @@ buildrune=$(
                next unless m/^ +\%/ .. 0;
                next if !m/\S/ .. 0;
                s/^ +\%//;
                next unless m/^ +\%/ .. 0;
                next if !m/\S/ .. 0;
                s/^ +\%//;
-               $fixchr += s/(\s-c\s*)jessie(\s|$)/$1build$2/;
+               $fixchr += s/(\s-c\s*)jessie(\s|$)/$1'"$schroot"'$2/;
                print or die $!;
                END { $fixchr == 1 or die $fixchr; }
        '
                print or die $!;
                END { $fixchr == 1 or die $fixchr; }
        '