summaryrefslogtreecommitdiff
path: root/tests/lib-restricts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib-restricts')
-rw-r--r--tests/lib-restricts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib-restricts b/tests/lib-restricts
index dfaaa25..5d32288 100644
--- a/tests/lib-restricts
+++ b/tests/lib-restricts
@@ -6,6 +6,12 @@ t-restriction-x-dgit-intree-only () {
return 1
}
+t-restriction-x-dgit-out-of-tree-only () {
+ if [ "x$DGIT_TEST_INTREE" = x ]; then return 0; fi
+ echo 'running out of development tree'
+ return 1
+}
+
t-restriction-x-dgit-git-only () {
if test -d .git; then return 0; fi
echo 'not running out of git clone'