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: Make dsd-clone-drs test a no-op in installed package mode
[dgit.git]
/
tests
/
tests
/
dsd-clone-drs
diff --git
a/tests/tests/dsd-clone-drs
b/tests/tests/dsd-clone-drs
index 347416027b8b36ccdf60ab375405272ad7450be5..aa162bb09d33e9febcda1a5b0d8d0f0630d74d1a 100755
(executable)
--- a/
tests/tests/dsd-clone-drs
+++ b/
tests/tests/dsd-clone-drs
@@
-1,6
+1,12
@@
#!/bin/bash
set -e
. tests/lib
#!/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
if ! test -d $root/.git; then
echo >&2 'not running out of git clone, cannot test self-clone'
exit 0