chiark / gitweb /
test suite: dpkgsourceignores-docs: Use print-dpkg-source-ignores
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 11:09:11 +0000 (12:09 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 21:41:51 +0000 (22:41 +0100)
Rather than fishing the value out of the in-tree dgit source code.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/dpkgsourceignores-docs

index 397b7834e5fa10651986f7d01917b406aaa4e94e..7638925d390b8a63de1e490ff9139c36c095460f 100755 (executable)
@@ -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 -----