summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-10-03 12:06:13 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-10-03 12:57:29 -0400
commit3edf6579f6e1874b46afacd9ce5dac7a38349171 (patch)
treedb4645df86b6c9ae4f01f487b726b3d729758653 /test
parentd110b58ca14705db49919963624c7cfda045c998 (diff)
librerelease: Set DBSCRIPTS_CONFIG for db-update
Its value is configurable in libretools.conf. I discussed this eventual change in my dbscripts plans on the mailing list.
Diffstat (limited to 'test')
-rw-r--r--test/cases/librerelease.bats3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cases/librerelease.bats b/test/cases/librerelease.bats
index 4e75cf9..1e29525 100644
--- a/test/cases/librerelease.bats
+++ b/test/cases/librerelease.bats
@@ -30,6 +30,7 @@ setup() {
# Configure libretools
cat >> "$XDG_CONFIG_HOME/libretools/libretools.conf" <<-eot
REPODEST=ssh://${USER@Q}@127.0.0.1:${ssh_port@Q}/${tmpdir@Q}/srv-staging/
+ DBSCRIPTS_CONFIG=/etc/dbscripts/config.local.phony
HOOKPRERELEASE=:
HOOKPOSTRELEASE=:
eot
@@ -96,6 +97,7 @@ teardown() {
install -Dm755 /dev/stdin "$tmpdir/bin/db-update" <<-eot
#!/bin/bash
{
+ printf '%s\n' "\$DBSCRIPTS_CONFIG"
readlink -f -- "\$STAGING"
find "\$STAGING" -printf '%P\n' | LC_COLLATE=C sort
} > ${tmpdir@Q}/log.txt
@@ -123,6 +125,7 @@ teardown() {
# Make sure everything went OK
pwd > "$tmpdir/pwd.txt"
cat > "$tmpdir/log-correct.txt" <<-eot
+ /etc/dbscripts/config.local.phony
$(readlink -f -- "$tmpdir/srv-staging")
repo1