summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/dsd-clone-drs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tests/dsd-clone-drs b/tests/tests/dsd-clone-drs
index 3474160..aa162bb 100755
--- a/tests/tests/dsd-clone-drs
+++ b/tests/tests/dsd-clone-drs
@@ -1,6 +1,12 @@
#!/bin/bash
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