chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test suite: Honour DGIT_SCHROOT_CHROOT to set the schroot to use for the sbuild tests.
[dgit.git]
/
tests
/
tests
/
dsd-clone-drs
diff --git
a/tests/tests/dsd-clone-drs
b/tests/tests/dsd-clone-drs
index aa162bb09d33e9febcda1a5b0d8d0f0630d74d1a..6065c5f4369866944ed4a78d1319d6cc5f4cbf98 100755
(executable)
--- a/
tests/tests/dsd-clone-drs
+++ b/
tests/tests/dsd-clone-drs
@@
-2,17
+2,11
@@
set -e
. tests/lib
set -e
. tests/lib
-if [ "x$DGIT_TEST_INTREE" = x ]; then
- echo >&2 'running installed package version, cannot test self-clone'
- exit 0
-fi
-
-if ! test -d $root/.git; then
- echo >&2 'not running out of git clone, cannot test self-clone'
- exit 0
-fi
+t-restrict x-dgit-intree-only
+t-restrict x-dgit-git-only
t-dsd
t-dsd
+eval "$DGIT_TEST_DSD_CLONE_DRS_HOOK"
cd $tmp
t-dgit clone-dgit-repos-server drs-cloned
cd $tmp
t-dgit clone-dgit-repos-server drs-cloned
@@
-20,4
+14,4
@@
t-dgit clone-dgit-repos-server drs-cloned
cd drs-cloned
ls -al infra/dgit-repos-server
cd drs-cloned
ls -al infra/dgit-repos-server
-echo ok.
+t-ok