Skip to contentSkip to conversation

t/t0211-trace2-perf.sh: fix typo patern -> pattern

PATCH In review Marcel Telka 2 participants 2 messages May 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 t/t0211-trace2-perf.sh: fix typo patern -> pattern

The bug went unnoticed because grep with null RE matches everything.

---
 t/t0211-trace2-perf.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t0211-trace2-perf.sh +1 -1
index 13ef69b92f..070fe7a5da 100755
@@ -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' '
#1 lore raw
Quoted 6 lines · Marcel Telka

The bug went unnoticed because grep with null RE matches everything.

---
 t/t0211-trace2-perf.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks. Will queue.

Quoted 13 lines
t/t0211-trace2-perf.sh +1 -1
index 13ef69b92f..070fe7a5da 100755
@@ -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' '