diff options
author | Jeff King <peff@peff.net> | 2012-11-14 16:33:40 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-11-15 17:47:24 -0800 |
commit | 09feffb633d9e27fa2f3b96ff7c367baa3164ce0 (patch) | |
tree | 0497f1082d30099a7a2b5410e98e1c98b80e8965 /t/test-lib.sh | |
parent | bdccd3c1fb261dc6d4aaf9fae446eea7136b76e2 (diff) | |
download | git-09feffb633d9e27fa2f3b96ff7c367baa3164ce0.tar.gz |
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>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 489bc80fc1..0334a9e8fd 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -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 |