tests: move test_lazy_prereq JGIT to test-lib.sh

This enables JGIT to be used as a prereq in invocations of test_expect_success (and other functions) in other test scripts. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Tan committed Sep 9, 2016 at 10:36 UTC 63b747ce1a4074a42b8f7fb5d6266489983ec38c
2 files changed +4 -4
t/t5310-pack-bitmaps.sh
-4
@@ -158,10 +158,6 @@ test_expect_success 'pack with missing parent' '
158 git pack-objects --stdout --revs <revs >/dev/null
159 '
160
161 -test_lazy_prereq JGIT '
162 - type jgit
163 -'
164 -
161 test_expect_success JGIT 'we can read jgit bitmaps' '
162 git clone . compat-jgit &&
163 (
t/test-lib.sh
+4
@@ -1072,6 +1072,10 @@ test_lazy_prereq NOT_ROOT '
1072 test "$uid" != 0
1073 '
1074
1075 +test_lazy_prereq JGIT '
1076 + type jgit
1077 +'
1078 +
1079 # SANITY is about "can you correctly predict what the filesystem would
1080 # do by only looking at the permission bits of the files and
1081 # directories?" A typical example of !SANITY is running the test