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 6e497b2..da90b6f 100755 (executable)
@@ -16,7 +16,7 @@ buildrune=$(
                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; }
        '