chiark / gitweb /
test suite lib: add t-buildproductsdir-config
[dgit.git] / tests / lib
index 2771252bd72a3e6cee75bcca8aa8f22e2a563b97..564ea512a6b0fd61a913d39618e3fe97e5cd7d84 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -74,6 +74,9 @@ incoming              = $tmp/incoming
 run_dinstall           = 0
 END
 
+schroot=${DGIT_SCHROOT_CHROOT:-build}
+# Pretty much any Debian sid snapshot schroot will do.
+
 : ${t_archive_method:=aq}
 : ${tagpfx:=archive/test-dummy}
 : ${suitespecs:=sid:unstable}
@@ -1130,6 +1133,11 @@ t-policy-periodic () {
        : '))))))))))))))))))))))))))))))))))))))))'
 }
 
+t-buildproductsdir-config () {
+       t-git-config dgit.default.build-products-dir $tmp/bpd
+       mkdir -p $tmp/bpd
+}
+
 t-restrict () {
        local restriction=$1
        (cd $root; t-restriction-$restriction >&2)