]> git.ipfire.org Git - thirdparty/git.git/commitdiff
test-lib-functions.sh: fix test_grep fail message wording
authorShreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com>
Sun, 3 Dec 2023 17:17:59 +0000 (22:47 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Dec 2023 18:44:41 +0000 (10:44 -0800)
In the recent commit 2e87fca189 (test framework: further deprecate
test_i18ngrep, 2023-10-31), the test_i18ngrep function was
deprecated, and all the callers were updated to call the test_grep
function instead.  But test_grep inherited an error message that
still refers to test_i18ngrep by mistake.  Correct it so that a
broken call to the test_grep will identify itself as such.

Signed-off-by: Shreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh

index c50bc18861ff92a4eb4fa54a6412f3153416b1fe..502f892fad6b172b0e3807f66d590e9b75ceb93b 100644 (file)
@@ -1222,7 +1222,7 @@ test_grep () {
        if test $# -lt 2 ||
           { test "x!" = "x$1" && test $# -lt 3 ; }
        then
-               BUG "too few parameters to test_i18ngrep"
+               BUG "too few parameters to test_grep"
        fi
 
        if test "x!" = "x$1"