From: Ian Jackson Date: Sun, 26 Aug 2018 11:06:31 +0000 (+0100) Subject: test suite: build-products-dir: Check nothing in ../ X-Git-Tag: archive/debian/6.10~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=65bfecf7405f3e37c25222b7f16e38edce81b5fa test suite: build-products-dir: Check nothing in ../ If bpd was set then .. shouldn't have this kind of junk in it. Signed-off-by: Ian Jackson --- diff --git a/tests/lib b/tests/lib index eb34c6b5..57b9e38e 100644 --- a/tests/lib +++ b/tests/lib @@ -404,6 +404,13 @@ t-git-fsck () { esac } +t-check-only-bpd () { + if [ "$bpd" = .. ]; then return; fi + t-files-notexist \ + ../*.{deb,changes,dsc,buildinfo} \ + ../*.{tar,diff}.* +} + t-fscks () { ( shopt -s nullglob @@ -416,6 +423,7 @@ t-fscks () { t-ok () { : '========================================' + t-check-only-bpd t-fscks t-save-artifacts echo ok.