]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/test-lib.sh
t7502: factor out autoident prerequisite
[thirdparty/git.git] / t / test-lib.sh
index 514282cbdfde7e661dcf17c0e1388c3c03a8d287..0334a9e8fd761b8415f7beb5d70794bc5be33dfd 100644 (file)
@@ -230,7 +230,7 @@ else
        say_color() {
                test -z "$1" && test -n "$quiet" && return
                shift
-               echo "$*"
+               printf "%s\n" "$*"
        }
 fi
 
@@ -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