t7502: factor out autoident prerequisite
t7502 checks the behavior of commit when we can and cannot determine a valid committer ident. Let's move that into test-lib as a lazy prerequisite so other scripts can use it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
bdccd3c1fb
commit
09feffb633
@ -738,6 +738,12 @@ test_lazy_prereq UTF8_NFD_TO_NFC '
|
||||
esac
|
||||
'
|
||||
|
||||
test_lazy_prereq AUTOIDENT '
|
||||
sane_unset GIT_AUTHOR_NAME &&
|
||||
sane_unset GIT_AUTHOR_EMAIL &&
|
||||
git var GIT_AUTHOR_IDENT
|
||||
'
|
||||
|
||||
# When the tests are run as root, permission tests will report that
|
||||
# things are writable when they shouldn't be.
|
||||
test -w / || test_set_prereq SANITY
|
||||
|
Reference in New Issue
Block a user