Skip to content

Commit a80f047

Browse files
committed
tests: do not require Git to be built when testing an installed Git
We really only need the test helpers in that case, but that is not what we test for. So let's skip the test for now when we know that we want to test an installed Git. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent f7c5cf8 commit a80f047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ PATH="$GIT_BUILD_DIR/$MSVC_DEPS/bin:$PATH"
6262

6363
################################################################
6464
# It appears that people try to run tests without building...
65-
"$GIT_BUILD_DIR/git$X" >/dev/null
65+
test -n "$GIT_TEST_INSTALLED" || "$GIT_BUILD_DIR/git$X" >/dev/null ||
6666
if test $? != 1
6767
then
6868
echo >&2 'error: you do not seem to have built git yet.'

0 commit comments

Comments
 (0)