chiark / gitweb /
Test suite: Make dsd-clone-drs test a no-op in installed package mode
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 23 Jun 2015 12:23:28 +0000 (13:23 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 23 Jun 2015 13:14:10 +0000 (14:14 +0100)
tests/tests/dsd-clone-drs

index 3474160..aa162bb 100755 (executable)
@@ -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