chiark / gitweb /
git-debrebase: merge: test suite: Drop check of no wreckage save
[dgit.git] / tests / tests / dpkgsourceignores-docs
index 397b7834e5fa10651986f7d01917b406aaa4e94e..a71e7f97e3701783ef90734c0e4b27afb2d76a53 100755 (executable)
@@ -2,7 +2,7 @@
 set -e
 . tests/lib
 
-t-restriction-x-dgit-intree-only
+t-restrict x-dgit-intree-only
 # we need the .pod source, which is not shipped
 
 cd $tmp
@@ -40,18 +40,12 @@ chmod +x doc.sh
 
 : ----- extract args from dgit -----
 
-perl -ne '
-       next unless m/^\s*our\s+\@dpkg_source_ignores\s*=/;
-       print;
-' $root/dgit >dgit.pl
+args=$( t-dgit print-dpkg-source-ignores )
 
-cat >>dgit.pl <<'END'
-       foreach my $arg (@dpkg_source_ignores) {
-               print $arg, "\n" or die $!;
-       }
-END
-
-perl dgit.pl >dgit.args
+>dgit.args
+for arg in $args; do
+       printf >>dgit.args "%s\n" "$arg"
+done
 
 : ----- compare -----