From df4419b77d5e231b7861a03542a22e36b0cda065 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 28 Sep 2018 18:04:03 +0100 Subject: test suite: t-check-only-bpd: Check $tmp/.. not .. The test might call t-ok in $p, say, or in $tmp. The effect of this bug was that in tests where t-ok was called in $tmp, it looked in $tmp/.. which might contain anything, rather than $tmp as intended. That means the test was not effective. Also it causes a spurious failure of t-import-nonnative in the Ubuntu CI infrastructure, where $AUTOPKGTEST_TMP/../autopkgtest-satdep.deb happens to exist. Reported-by: Mattia Rizzolo Signed-off-by: Ian Jackson --- tests/lib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib b/tests/lib index 57b9e38..a4f307f 100644 --- a/tests/lib +++ b/tests/lib @@ -407,8 +407,8 @@ t-git-fsck () { t-check-only-bpd () { if [ "$bpd" = .. ]; then return; fi t-files-notexist \ - ../*.{deb,changes,dsc,buildinfo} \ - ../*.{tar,diff}.* + $tmp/*.{deb,changes,dsc,buildinfo} \ + $tmp/*.{tar,diff}.* } t-fscks () { -- cgit v1.2.3