]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/t0211-trace2-perf.sh: fix typo patern -> pattern
authorMarcel Telka <marcel@telka.sk>
Thu, 16 May 2024 07:45:06 +0000 (09:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 May 2024 16:34:39 +0000 (09:34 -0700)
The bug went unnoticed because grep with null RE matches everything.

Signed-off-by: Marcel Telka <marcel@telka.sk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0211-trace2-perf.sh

index 0b3436e8cac5a07759aa72dd1b8b5b8f62488248..37a51e6449a78451081e06368fa055c317389ef2 100755 (executable)
@@ -233,7 +233,7 @@ have_counter_event () {
 
        pattern="d0|${thread}|${event}||||${category}|name:${name} value:${value}" &&
 
-       grep "${patern}" ${file}
+       grep "${pattern}" ${file}
 }
 
 test_expect_success 'global counter test/test1' '