chiark / gitweb /
test suite lib: add t-buildproductsdir-config
authorSean Whitton <spwhitton@spwhitton.name>
Tue, 24 Jul 2018 03:15:56 +0000 (11:15 +0800)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 26 Jul 2018 12:00:47 +0000 (13:00 +0100)
No users yet so NFC.

Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib

index a297227fc73c6c6376927eb6db5f09b13e34b29a..564ea512a6b0fd61a913d39618e3fe97e5cd7d84 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -1133,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)