X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Flib-restricts;h=5d32288217f01ac41350422731093b1858d723fa;hp=dfaaa25eebbee7334a722e34c14be6e6b5b9a7a3;hb=0c244082ddb4b2443ccfbc1c438ead4fda1c33ca;hpb=f0b46b0422f6ce3bb7c360ee3717eef95d621526 diff --git a/tests/lib-restricts b/tests/lib-restricts index dfaaa25e..5d322882 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'