summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-08-08 09:37:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-08-08 17:22:55 (GMT)
commit7f0b5908759c59b77b39c62184166325e30f8878 (patch)
treec428c68260fb6813ad82905d3f0315e8ac8eec80 /t
parent1c1f6e03e1fbd92e1785bc21f6974dd036790a44 (diff)
downloadgit-7f0b5908759c59b77b39c62184166325e30f8878.zip
git-7f0b5908759c59b77b39c62184166325e30f8878.tar.gz
git-7f0b5908759c59b77b39c62184166325e30f8878.tar.bz2
t0000: reword comments for "local" test
Commit 01d3a526ad (t0000: check whether the shell supports the "local" keyword, 2017-10-26) added a test to gather data on whether people run the test suite with shells that don't support "local". After almost two years, nobody has complained, and several other uses have cropped up in test-lib-functions.sh. Let's declare it acceptable to use. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t0000-basic.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh
index 31de7e9..60c6610 100755
--- a/t/t0000-basic.sh
+++ b/t/t0000-basic.sh
@@ -25,16 +25,14 @@ try_local_x () {
echo "$x"
}
-# This test is an experiment to check whether any Git users are using
-# Shells that don't support the "local" keyword. "local" is not
+# Check whether the shell supports the "local" keyword. "local" is not
# POSIX-standard, but it is very widely supported by POSIX-compliant
-# shells, and if it doesn't cause problems for people, we would like
-# to be able to use it in Git code.
+# shells, and we rely on it within Git's test framework.
#
-# For now, this is the only test that requires "local". If your shell
-# fails this test, you can ignore the failure, but please report the
-# problem to the Git mailing list <git@vger.kernel.org>, as it might
-# convince us to continue avoiding the use of "local".
+# If your shell fails this test, the results of other tests may be
+# unreliable. You may wish to report the problem to the Git mailing
+# list <git@vger.kernel.org>, as it could cause us to reconsider
+# relying on "local".
test_expect_success 'verify that the running shell supports "local"' '
x="notlocal" &&
echo "local" >expected1 &&