diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-08-03 12:09:11 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-08-04 23:06:19 +0100 |
commit | 36a39bc425000c2e60d126ea46f35b3e9965787e (patch) | |
tree | 46ae275c14d0e6e5f95654a90c43500ef7ee8317 /tests | |
parent | 072eebfbdd8d6da31e5e89212ca6669b50993ea1 (diff) |
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 <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests/dpkgsourceignores-docs | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/tests/tests/dpkgsourceignores-docs b/tests/tests/dpkgsourceignores-docs index 397b783..7638925 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 ----- |