From: Ian Jackson Date: Thu, 3 Aug 2017 11:09:11 +0000 (+0100) Subject: test suite: dpkgsourceignores-docs: Use print-dpkg-source-ignores X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=7a521a0923b92da6ee41b890fe37053a2747203d test suite: dpkgsourceignores-docs: Use print-dpkg-source-ignores Rather than fishing the value out of the in-tree dgit source code. Signed-off-by: Ian Jackson --- diff --git a/tests/tests/dpkgsourceignores-docs b/tests/tests/dpkgsourceignores-docs index 397b7834..7638925d 100755 --- a/tests/tests/dpkgsourceignores-docs +++ b/tests/tests/dpkgsourceignores-docs @@ -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 -----