summaryrefslogtreecommitdiff
path: root/tests/tests/defdistro-dsd-clone-drs
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-21 11:39:16 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-21 11:39:19 +0000
commitc3c1ba424e0fb36e923f62ea4098e818ea64323f (patch)
treec26aa749bdc7e00acb4f3dc02f654149da478109 /tests/tests/defdistro-dsd-clone-drs
parent52454cf68287af71bb97d5c77dc8444aef8dd143 (diff)
test suite: defdistro-dsd-clone-drs: New test
Would have detected #851906 (and hopefully #850521). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests/defdistro-dsd-clone-drs')
-rwxr-xr-xtests/tests/defdistro-dsd-clone-drs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/tests/defdistro-dsd-clone-drs b/tests/tests/defdistro-dsd-clone-drs
new file mode 100755
index 0000000..1a1c138
--- /dev/null
+++ b/tests/tests/defdistro-dsd-clone-drs
@@ -0,0 +1,14 @@
+#!/bin/bash
+. tests/lib
+
+t-restrict x-dgit-intree-only
+t-restrict x-dgit-git-only
+
+export DGIT_TEST_DSD_CLONE_DRS_HOOK='
+ t-git-config dgit.default.distro test-dummy
+ url=$(git config dgit-distro.test-dummy.git-url)
+ t-git-config dgit-distro.test-dummy/push.git-url "$url"
+ t-git-config dgit-distro.test-dummy.git-url nosuchprotocol://
+'
+
+t-alt-test