Would have detected #851906 (and hopefully #850521).
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Fix clone-dgit-repos-server and print-dgit-repos-server-print-url.
Closes:#851906.
- --
+ Test suite:
+ * defdistro-dsd-clone-drs: New test which would have detected
+ #851906 (and hopefully #850521).
+
+ -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sat, 21 Jan 2017 11:38:57 +0000
dgit (3.6) unstable; urgency=medium
Tests-Directory: tests/tests
Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, reprepro
-Tests: dsd-clone-drs
+Tests: defdistro-dsd-clone-drs dsd-clone-drs
Tests-Directory: tests/tests
Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential
Restrictions: x-dgit-intree-only x-dgit-git-only
--- /dev/null
+#!/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
t-restrict x-dgit-git-only
t-dsd
+eval "$DGIT_TEST_DSD_CLONE_DRS_HOOK"
cd $tmp
t-dgit clone-dgit-repos-server drs-cloned