[PATCH] test-lib: try harder to ensure a working jgit
- Date: Mon, 13 May 2019 22:05:20 -0400
- From: Todd Zullinger <tmz@xxxxxxxxx>
- Subject: [PATCH] test-lib: try harder to ensure a working jgit
The JGIT prereq uses 'type jgit' to determine whether jgit is present.
While this should be sufficient, if the jgit found is broken we'll waste
time running tests which fail due to no fault of our own.
Use 'jgit --version' instead, to catch some badly broken jgit
Signed-off-by: Todd Zullinger <tmz@xxxxxxxxx>
I ran into such a broken jgit on Fedora >= 30¹. This is clearly a
problem in the Fedora jgit package which will hopefully be resolved
soon. But it may be good to avoid wasting time debugging tests which
fail due to a broken tool outside of our control.
t/test-lib.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 908ddb9c46..599fd70e14 100644
@@ -1522,7 +1522,7 @@ test_lazy_prereq NOT_ROOT '
test_lazy_prereq JGIT '
- type jgit
+ jgit --version
# SANITY is about "can you correctly predict what the filesystem would