chiark / gitweb /
test suite: Introduce $bpd variable (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 26 Jul 2018 06:28:30 +0000 (07:28 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 26 Jul 2018 12:00:47 +0000 (13:00 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib

index 564ea51..2842ce8 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -40,6 +40,7 @@ root=`pwd`
 troot=$root/tests
 testname="${DGIT_TEST_TESTNAME-${0##*/}}"
 export DGIT_TEST_TROOT=$troot
+bpd=..
 
 tmp=$ADTTMP
 if [ x"$tmp" = x ]; then
@@ -1134,8 +1135,9 @@ t-policy-periodic () {
 }
 
 t-buildproductsdir-config () {
-       t-git-config dgit.default.build-products-dir $tmp/bpd
-       mkdir -p $tmp/bpd
+       bpd=$tmp/bpd
+       t-git-config dgit.default.build-products-dir $bpd
+       mkdir -p $bpd
 }
 
 t-restrict () {