mirror of
https://github.com/git/git
synced 2024-08-28 03:59:25 +00:00
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>
This commit is contained in:
parent
e0c1ceafc5
commit
63b747ce1a
|
@ -158,10 +158,6 @@ test_expect_success 'pack with missing parent' '
|
|||
git pack-objects --stdout --revs <revs >/dev/null
|
||||
'
|
||||
|
||||
test_lazy_prereq JGIT '
|
||||
type jgit
|
||||
'
|
||||
|
||||
test_expect_success JGIT 'we can read jgit bitmaps' '
|
||||
git clone . compat-jgit &&
|
||||
(
|
||||
|
|
|
@ -1072,6 +1072,10 @@ test_lazy_prereq NOT_ROOT '
|
|||
test "$uid" != 0
|
||||
'
|
||||
|
||||
test_lazy_prereq JGIT '
|
||||
type jgit
|
||||
'
|
||||
|
||||
# SANITY is about "can you correctly predict what the filesystem would
|
||||
# do by only looking at the permission bits of the files and
|
||||
# directories?" A typical example of !SANITY is running the test
|
||||
|
|
Loading…
Reference in a new issue